nzmath.poly.uniutil

RingPolynomial

General polynomial with commutative ring coefficients.

This class inherits univar.SortedPolynomial, OrderProvider and RingElementProvider.

Constructor

RingPolynomial(coefficients [,coeffring [,keyword arguments]])

Initialize the polynomial.

Methods

getRing()

Return an object of a subclass of Ring, to which the element belongs.
(This method overrides the definition in RingElementProvider)

getCoefficientRing()

Return an object of a subclass of Ring, to which the all coefficients belong.
(This method overrides the definition in RingElementProvider)

shift_degree_to(degree)

Return polynomial whose degree is the given degree.
More precisely, let f(X) = a_0 + ... + a_n * X**n, then f.shift_degree_to(m) returns:

(This method is inherited from OrderProvider)

split_at(degree)

Return tuple of two polynomials, which are splitted at the given degree. The term of the given degree, if exists, belongs to the lower degree polynomial.
(This method is inherited from OrderProvider)