nzmath.poly.uniutil

DomainPolynomial

Polynomial with domain coefficients. In addition to the basic polynomial operations, it has pseudo division methods.

This class inherits RingPolynomial and PseudoDivisionProvider.

Constructor

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

Initialize the polynomial.

Methods

pseudo_divmod(other)

f.pseudo_divmod(other) -> (Q, R)

Q, R are polynomials such that

 d**(deg(f) - deg(other) + 1) * f == other * Q + R,

where d is the leading coefficient of other.
(This method is inherited from PseudoDivisionProvider)

pseudo_floordiv(other)

f.pseudo_floordiv(other) -> Q

Q is a polynomial such that

 d**(deg(f) - deg(other) + 1) * f == other * Q + R,

where d is the leading coefficient of other and R is a polynomial.
(This method is inherited from PseudoDivisionProvider)

pseudo_mod(other)

f.pseudo_mod(other) -> R

R is a polynomial such that

 d**(deg(f) - deg(other) + 1) * f == other * Q + R,

where d is the leading coefficient of other and Q a polynomial.
(This method is inherited from PseudoDivisionProvider)

exact_division(other)

Return quotient of exact division.
(This method is inherited from PseudoDivisionProvider)

scalar_exact_division(scale)

Return quotient by a scalar which can divide each coefficient exactly.
(This method is inherited from PseudoDivisionProvider)

discriminant()

Return discriminant of the polynomial.
(new in 0.90.0)

to_field_polynomial()

Return a FieldPolynomial object obtained by embedding the polynomial ring over the domain D to over the quatient field of D.
(new in 0.90.0)