Create Legendre polynomial
y=legendre_poly(n)
a 1-by-1 matrix of doubles, integer value, n>=0.
a polynomial
Create a Legendre polynomial of degree n at point x. To evaluate it, we can use the horner function, but legendre_eval might be faster and more accurate.
The Legendre polynomials are orthogonals with respect to the scalar product :
where w(x) is the Legendre weight.