New in version 1.6.0.
Legendre Series (numpy.polynomial.legendre)
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
).
Classes
|
A Legendre series class. |
Constants
Arithmetic
|
Add one Legendre series to another. |
|
Subtract one Legendre series from another. |
|
Multiply a Legendre series by x. |
|
Multiply one Legendre series by another. |
|
Divide one Legendre series by another. |
|
Raise a Legendre series to a power. |
|
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. |
Calculus
|
Differentiate a Legendre series. |
|
Integrate a Legendre series. |
Misc Functions
|
Generate a Legendre series with given roots. |
|
Compute the roots of a Legendre series. |
|
Pseudo-Vandermonde matrix of given degree. |
|
Pseudo-Vandermonde matrix of given degrees. |
|
Pseudo-Vandermonde matrix of given degrees. |
|
Gauss-Legendre quadrature. |
|
Weight function of the Legendre polynomials. |
|
Return the scaled companion matrix of c. |
|
Least squares fit of Legendre series to data. |
|
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. |
See also
numpy.polynomial
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/routines.polynomials.legendre.html