scipy.special.eval_legendre¶
-
scipy.special.eval_legendre(n, x, out=None) = <ufunc 'eval_legendre'>¶ Evaluate Legendre polynomial at a point.
The Legendre polynomials can be defined via the Gauss hypergeometric function \({}_2F_1\) as
\[P_n(x) = {}_2F_1(-n, n + 1; 1; (1 - x)/2).\]When \(n\) is an integer the result is a polynomial of degree \(n\).
- Parameters
- narray_like
Degree of the polynomial. If not an integer, the result is determined via the relation to the Gauss hypergeometric function.
- xarray_like
Points at which to evaluate the Legendre polynomial
- Returns
- Pndarray
Values of the Legendre polynomial
See also
roots_legendreroots and quadrature weights of Legendre polynomials
legendreLegendre polynomial object
hyp2f1Gauss hypergeometric function
numpy.polynomial.legendre.LegendreLegendre series
