Polynomial with field coefficients. This kind of polynomials have Euclidean divisions, therefore in addition to the basic polynomial operations, it has division operators.
This class inherits RingPolynomial, DivisionProvider and ContentProvider.
Initialize the polynomial.
Return content of the polynomial.
(This method is inherited from ContentProvider)
Return the primitive part of the polynomial.
(This method is inherited from ContentProvider)
Return dividend % self.
(This method is inherited from DivisionProvider)
Return quotient by a scalar which can divide each coefficient exactly.
(This method is inherited from DivisionProvider)
Return a greatest common divisor of self and other.
Returned polynomial is always monic.
(This method is inherited from DivisionProvider)
Return a tuple (u, v, d); they are the greatest common divisor d of two polynomials self and other and u, v such that
d = self * u + other * v
see gcd.extgcd.
(This method is inherited from DivisionProvider)
f // g | quotient of floor division |
f % g | remainder |
divmod(f, g) | quotient and remainder |
f / g | division in rational function field |