This is documentation for an old release of NumPy (version 1.18). Read this page in the documentation of the latest stable release (version 2.2).
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¶
|
A power series class. |
Basics¶
|
Evaluate a polynomial at points x. |
|
Evaluate a 2-D polynomial at points (x, y). |
|
Evaluate a 3-D polynomial at points (x, y, z). |
|
Evaluate a 2-D polynomial on the Cartesian product of x and y. |
|
Evaluate a 3-D polynomial on the Cartesian product of x, y and z. |
|
Compute the roots of a polynomial. |
|
Generate a monic polynomial with given roots. |
|
Evaluate a polynomial specified by its roots at points x. |
Fitting¶
|
Least-squares fit of a polynomial to data. |
|
Vandermonde matrix of given degree. |
|
Pseudo-Vandermonde matrix of given degrees. |
|
Pseudo-Vandermonde matrix of given degrees. |
Calculus¶
|
Differentiate a polynomial. |
|
Integrate a polynomial. |
Algebra¶
|
Add one polynomial to another. |
|
Subtract one polynomial from another. |
|
Multiply one polynomial by another. |
|
Multiply a polynomial by x. |
|
Divide one polynomial by another. |
|
Raise a polynomial to a power. |