35 bool isNotZero()
const;
36 bool isNegative()
const;
51 ostream&
print(ostream& dst)
const;
53 int complexity()
const;
54 Tree normalizedTree(
bool sign=
false,
55 bool neg=
false)
const;
56 Tree signatureTree()
const;
58 bool hasDivisor (
const mterm& n)
const;
mterm gcd(const mterm &m1, const mterm &m2)
return a mterm that is the greatest common divisor of two mterms
Tree fCoef
constant part of the term (usually 1 or -1)
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
map< Tree, int > fFactors
non constant terms and their power
Implements a multiplicative term, a term of type k*x^n*y^m*...
interval operator*(const interval &x, const interval &y)
interval operator/(const interval &x, const interval &y)
ostream & operator<<(ostream &s, const mterm &m)
ostream & print(ostream &dst) const
print a mterm k*x1**n1*x2**n2...
void print(Tree t, FILE *out)