Documentation ¶
Index ¶
- func AreEqual(esf exponents.Interface, csf coefficients.Interface, esg exponents.Interface, ...) (bool, error)
- func CmpLeadingMonomial(esf exponents.Interface, esg exponents.Interface) (int, error)
- func Hash(es exponents.Interface, cs coefficients.Interface) hash.Value
- func IsMonic(cs coefficients.Interface) (bool, error)
- func IsMonomial(cs coefficients.Interface) (bool, error)
- func IsOne(es exponents.Interface, cs coefficients.Interface) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreEqual ¶
func AreEqual(esf exponents.Interface, csf coefficients.Interface, esg exponents.Interface, csg coefficients.Interface) (bool, error)
AreEqual returns true iff the polynomials f and g are equal, where f is described by the parallel slices of exponents esf and coefficients csf, and g is described by the parallel slices of exponents esg and coefficients csg. Assumes that the slices are sorted in increasing exponent order.
func CmpLeadingMonomial ¶
CmpLeadingMonomial returns -1 if LM(f) < LM(g), 0 if LM(f) = LM(g), and +1 if LM(f) > LM(g), were LM denotes the leading monomial. The exponents of the polynomial f (and, respectively, g) are given by the slice of exponents esf (resp. esg), which are assumed to be sorted in increasing exponent order. It returns an error if f = 0 or g = 0, in which case LM(f) or LM(g) is not well-defined, or if the parents of the monomials do not agree.
func IsMonic ¶
func IsMonic(cs coefficients.Interface) (bool, error)
IsMonic returns true iff the slice of coefficients cs describe a monic polynomial f (that is, if the leading coefficient of f is 1). Assumes that the slice is sorted in increasing exponent order.
func IsMonomial ¶
func IsMonomial(cs coefficients.Interface) (bool, error)
IsMonomial returns true iff the slice of coefficients cs correspond to a monomial (that is, x^m for some m in the exponent monoid).
Types ¶
This section is empty.