]> www.ginac.de Git - ginac.git/blob - ginac/polynomial/divide_in_z_p.h
f790fcdcb41b70a361b4054ddbc430ea72e58a16
[ginac.git] / ginac / polynomial / divide_in_z_p.h
1 #ifndef GINAC_CHINREM_GCD_DIVIDE_IN_Z_P_H
2 #define GINAC_CHINREM_GCD_DIVIDE_IN_Z_P_H
3
4 #include <ginac/ginac.h>
5 namespace GiNaC
6 {
7
8 /** 
9  * Exact polynomial division of a, b \in Z_p[x_0, \ldots, x_n]
10  * It doesn't check whether the inputs are proper polynomials, so be careful
11  * of what you pass in.
12  *  
13  * @param a  first multivariate polynomial (dividend)
14  * @param b  second multivariate polynomial (divisor)
15  * @param q  quotient (returned)
16  * @param var variables X iterator to first element of vector of symbols
17  *
18  * @return "true" when exact division succeeds (the quotient is returned in
19  *          q), "false" otherwise.
20  */
21 extern bool
22 divide_in_z_p(const ex &a, const ex &b, ex &q, const exvector& vars, const long p);
23
24 } // namespace GiNaC
25
26 #endif /* GINAC_CHINREM_GCD_DIVIDE_IN_Z_P_H */
27