Legendre polynomials
[p, pdot, p2dot] = CL_legendrePoly(n)
Computes Legendre polynomials.
Legendre polynomials are defined as follows:
P0(x) = 1 (degree 0)
P1(x) = x (degree 1)
(k+1) * Pk+1(x) = (2*k+1)*Pk(x) - k * Pk-1(x) (for k >= 1)
The function returns the polynomials of degree n. p(k) is the polynomial of degree n(k).
The function also optionally returns the first and second derivatives of the polynomials.
(integer) Degrees of the polynomials in [0,100] (PxQ)
Legendre polynomials (same size as n)
First derivative of the polynomials (same size as p)
Second derivative of the polynomials (same size as p)
CNES - DCT/SB