New in version 1.4.0.
Power Series (numpy.polynomial.polynomial
)¶
This module provides a number of objects (mostly functions) useful for
dealing with polynomials, including a Polynomial
class that
encapsulates the usual arithmetic operations. (General information
on how this module represents and works with polynomial objects is in
the docstring for its “parent” sub-package, numpy.polynomial
).
Classes¶
|
A power series class. |
Constants¶
An array object represents a multidimensional, homogeneous array of fixed-size items. |
|
An array object represents a multidimensional, homogeneous array of fixed-size items. |
|
An array object represents a multidimensional, homogeneous array of fixed-size items. |
|
An array object represents a multidimensional, homogeneous array of fixed-size items. |
Arithmetic¶
|
Add one polynomial to another. |
|
Subtract one polynomial from another. |
|
Multiply a polynomial by x. |
|
Multiply one polynomial by another. |
|
Divide one polynomial by another. |
|
Raise a polynomial to a power. |
|
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. |
Calculus¶
|
Differentiate a polynomial. |
|
Integrate a polynomial. |
Misc Functions¶
|
Generate a monic polynomial with given roots. |
|
Compute the roots of a polynomial. |
|
Evaluate a polynomial specified by its roots at points x. |
|
Vandermonde matrix of given degree. |
|
Pseudo-Vandermonde matrix of given degrees. |
|
Pseudo-Vandermonde matrix of given degrees. |
Return the companion matrix of c. |
|
|
Least-squares fit of a polynomial to data. |
|
Remove "small" "trailing" coefficients from a polynomial. |
|
Returns an array representing a linear polynomial. |