1 #include "indeterminate.hpp" 21 R = other.
R;
i = other.
i;
36 u.set_exponent(y.
i, 1);
virtual NVAR_TYPE number_of_variables() const
number of indeterminates (variables) in the ring
void set_exponent(NVAR_TYPE i, DEG_TYPE e)
change th exponent to
friend ostream & operator<<(ostream &, Indeterminate &)
prints this with the appropriate name
NVAR_TYPE i
which indeterminate in R this is
virtual const string name(NVAR_TYPE i) const
name of the th indeterminate
Monomial operator*(Indeterminate y)
returns the product of this and y
Implementation of indeterminates, for easier building of polynomials.
Implementation of monomials.
Monomial operator^(EXP_TYPE a)
returns this to the ath power
Polynomial_Ring * R
the ring this lives in