legendre
scipy.special.
- scipy.special.legendre(n, monic=False)
Legendre polynomial.
Defined to be the solution of
Legendre polynomial.
Defined to be the solution of
is a polynomial of degree .
Degree of the polynomial.
If True, scale the leading coefficient to be 1. Default is False.
Legendre polynomial.
The polynomials are orthogonal over with weight function 1.
Generate the 3rd-order Legendre polynomial 1/2*(5x^3 + 0x^2 - 3x + 0):
>>> from scipy.special import legendre
>>> legendre(3)
poly1d([ 2.5, 0. , -1.5, 0. ])