934{
939 for (f = f1, g = g1; f !=
nullptr && g !=
nullptr; f = f->
next, g = g->
next)
940 {
945 if (!isequal) return false;
946 }
947 if (f == nullptr && g == nullptr) return true;
948 return false;
949}
int compare(int nslots, const_monomial m, const_monomial n) const
Engine-side commutative monomial monoid: variable names, ordering, multidegree machinery,...
virtual const Monoid * getMonoid() const
virtual const Ring * getCoefficients() const
virtual bool is_equal(const ring_elem f, const ring_elem g) const =0
virtual ring_elem mult(const ring_elem f, const ring_elem g) const =0
Singly linked-list node carrying one term of a polynomial-ring element.