1 #ifndef __INDETERMINATE_HPP_ 2 #define __INDETERMINATE_HPP_ 23 #include "system_constants.hpp" 25 #include "monomial.hpp" 26 #include "polynomial_ring.hpp" void set_exponent(NVAR_TYPE i, DEG_TYPE e)
change th exponent to
Polynomial_Ring & base_ring()
the Polynomial_Ring this lives in
friend ostream & operator<<(ostream &, Indeterminate &)
prints this with the appropriate name
NVAR_TYPE i
which indeterminate in R this is
Indeterminate(Polynomial_Ring &P, NVAR_TYPE xi)
this will correspond to the xith indeterminate of P.
Monomial operator*(Indeterminate y)
returns the product of this and y
Implementation of indeterminates, for easier building of polynomials.
Implementation of monomials.
Encapsulates information about a polynomial ring for easy access: ground field, number of indetermina...
NVAR_TYPE index_in_ring()
which variable in base_ring() this is
DEG_TYPE degree(NVAR_TYPE i) const
Degree of th variable.
Monomial operator^(EXP_TYPE a)
returns this to the ath power
Polynomial_Ring * R
the ring this lives in
Indeterminate(const Indeterminate &other)
copy constructor