bundles / numpy 2.4.4 / numpy / polynomial / polynomial / polydiv
function
numpy.polynomial.polynomial:polydiv
Signature
def polydiv ( c1 , c2 ) Summary
Divide one polynomial by another.
Extended Summary
Returns the quotient-with-remainder of two polynomials c1 / c2. The arguments are sequences of coefficients, from lowest order term to highest, e.g., [1,2,3] represents 1 + 2*x + 3*x**2.
Parameters
c1, c2: array_like1-D arrays of polynomial coefficients ordered from low to high.
Returns
[quo, rem]: ndarraysOf coefficient series representing the quotient and remainder.
Examples
from numpy.polynomial import polynomial as P c1 = (1, 2, 3) c2 = (3, 2, 1) P.polydiv(c1, c2)✓
P.polydiv(c2, c1)
✗See also
Aliases
-
numpy.polynomial.Polynomial._div -
numpy.polynomial.polynomial.polydiv