SciPy

numpy.polynomial.legendre.Legendre.basis

static Legendre.basis(deg, domain=[-1, 1], window=[-1, 1])

Legendre polynomial of degree deg.

Returns an instance of the Legendre polynomial of degree d.

Parameters :

deg : int

Degree of the Legendre polynomial. Must be >= 0.

domain : array_like

The resulting array must be of the form [beg, end], where beg and end are the endpoints of the domain.

window : array_like

The resulting array must be if the form [beg, end], where beg and end are the endpoints of the window.

Returns

p : Legendre instance

Notes

New in version 1.7.0.