UserManual | (ÆüËܸì)
polynomial module provides polynomials.
A factory function to create an instance of OneVariablePolynomial or its descendants. For coefficient, specify a sequence of coefficients in ascending order from degree 0. variable is a name string of the variable. coeffring should be, if it is given, an objent of nzmath.ring.Ring, which represents the coefficient ring. If it is not given, the coefficient ring is speculated from coefficient. If coefficient is empty, then the speculation is impossible, thus in such cases coeffring must be given.
A factory function to create an instance of OneVariablePolynomial or its descendants. For coefficient, specify a dictionary, whose keys are degrees and values are coefficients. The explanations for variable and coeffring of OneVariableDensePolynomial are valid for here.
Create an object of OneVariablePolynomial or its descendants with giving a valid Python code string of polynomial to polynomial argument. The identifiers appearing polynomial, which should not be interpreted as polynomial variables can be handed in kwd as a dictionary.
Return the result of pseudo-division Q and R such that
d**(deg(A)-deg(B)+1) * A == B * Q + R,
where d is the leading coefficient of B.
Return the resultant of f and g.
Compute the gcd of A and B using sub-resultant algorithm. The coefficient ring of polynomials must be a UFD.