Polynomial Module (numpy.polynomial.polynomial)
New in version 1.4.0.
This module provides a number of objects (mostly functions) useful for
dealing with Polynomial series, including a Polynomial class that
encapsulates the usual arithmetic operations. (General information
on how this module represents and works with such polynomials is in the
docstring for its “parent” sub-package, numpy.polynomial).
Polynomial Class
| Polynomial(coef[, domain, window]) |
A Polynomial series class. |
Basics
| polyval(x, cs) |
Evaluate a polynomial. |
| polyval2d |
|
| polyval3d |
|
| polygrid2d |
|
| polygrid3d |
|
| polyroots(cs) |
Compute the roots of a polynomial. |
| polyfromroots(roots) |
Generate a polynomial with the given roots. |
Fitting
| polyfit(x, y, deg[, rcond, full, w]) |
Least-squares fit of a polynomial to data. |
| polyvander(x, deg) |
Vandermonde matrix of given degree. |
| polyvander2d |
|
| polyvander3d |
|
Calculus
| polyder(cs[, m, scl]) |
Differentiate a polynomial. |
| polyint(cs[, m, k, lbnd, scl]) |
Integrate a polynomial. |
Algebra
| polyadd(c1, c2) |
Add one polynomial to another. |
| polysub(c1, c2) |
Subtract one polynomial from another. |
| polymul(c1, c2) |
Multiply one polynomial by another. |
| polymulx(cs) |
Multiply a polynomial by x. |
| polydiv(c1, c2) |
Divide one polynomial by another. |
| polypow(cs, pow[, maxpower]) |
Raise a polynomial to a power. |