property

package
v0.0.2-0...-db6250e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: CC0-1.0, CC0-1.0, CC0-1.0, + 1 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreEqual

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

func CmpLeadingMonomial(esf exponents.Interface, esg exponents.Interface) (int, error)

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 Hash

Hash returns a hash value for the given parallel slices of exponents and coefficients.

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).

func IsOne

IsOne returns true iff the parallel slices of exponents es and coefficients cs correspond to the polynomial 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL