Legendre Module (numpy.polynomial.legendre
)¶
New in version 1.6.0.
This module provides a number of objects (mostly functions) useful for
dealing with Legendre series, including a Legendre
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
).
Basics¶
|
Evaluate a Legendre series at points x. |
|
Evaluate a 2-D Legendre series at points (x, y). |
|
Evaluate a 3-D Legendre series at points (x, y, z). |
|
Evaluate a 2-D Legendre series on the Cartesian product of x and y. |
|
Evaluate a 3-D Legendre series on the Cartesian product of x, y, and z. |
|
Compute the roots of a Legendre series. |
|
Generate a Legendre series with given roots. |
Fitting¶
|
Least squares fit of Legendre series to data. |
|
Pseudo-Vandermonde matrix of given degree. |
|
Pseudo-Vandermonde matrix of given degrees. |
|
Pseudo-Vandermonde matrix of given degrees. |
Calculus¶
|
Differentiate a Legendre series. |
|
Integrate a Legendre series. |
Algebra¶
|
Add one Legendre series to another. |
|
Subtract one Legendre series from another. |
|
Multiply one Legendre series by another. |
|
Multiply a Legendre series by x. |
|
Divide one Legendre series by another. |
|
Raise a Legendre series to a power. |
Quadrature¶
|
Gauss-Legendre quadrature. |
|
Weight function of the Legendre polynomials. |
Miscellaneous¶
|
Return the scaled companion matrix of c. |
|
Remove “small” “trailing” coefficients from a polynomial. |
|
Legendre series whose graph is a straight line. |
|
Convert a Legendre series to a polynomial. |
|
Convert a polynomial to a Legendre series. |