nzmath.poly.multiutil

RingPolynomial

General polynomial with commutative ring coefficients.

This class inherits multivar.BasicPolynomial, OrderProvider, NestProvider and RingElementProvider.

Constructor

RingPolynomail(coefficients [,keyword arguments])

Initialize the polynomial.

Required argument:

Keyword arguments should include:

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)

leading_variable()

Return the position of the leading variable (the leading term among all total degree one terms).

The leading term varies with term orders, so does the result. The term order can be specified via the attribute 'order'.
(This method is inherited from NestProvider)

nest(outer, coeffring)

Nest the polynomial by extracting outer variable at the given position.
(This method is inherited from NestProvider)

unnest(q, outer, coeffring)

Unnest the nested polynomial q by inserting outer variable at the given position.
(This method is inherited from NestProvider)