SciPy

This is documentation for an old release of SciPy (version 0.13.0). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.special.legendre

scipy.special.legendre(n, monic=0)[source]

Returns the nth order Legendre polynomial, P_n(x), orthogonal over [-1,1] with weight function 1.