Legen(X) = Legendre polynomial of integer >= 0


Legen(X) = Legendre polynomial of integer >= 0:

The general form of a Legendre polynomial of order n is given by the sum:

Legen(n) = P(n) = Sum {m=0 to M} [(−1)^m * (2*n − 2*m)! / (2^n * m! * (n − m)! * (n − 2*m)!) * x^(n−2*m)]

where M = n/2 or (n−1)/2, whichever is an integer.

P(n) has n+1 terms {p(n); p(n−1); ...; p(1); p(0)}.

p(n) = Fac(n+n) / (2^n * Fac(n)^2);
for (m = n − 2; m >= 0; m −= 2)

p(m) = −p(m+2) * (m+2)*(m+1) / ((n−m)*(n+m+1));
for (m = n − 1; m >= 0; m −= 2)
p(m) = 0;

The first few Legendre polynomials are:

P(0) = 1 = {1}
P(1) = x = {1; 0}
P(2) = (3*x^2 − 1)/2 = {1.5; 0; −0.5}
P(3) = (5*x^3 − 3*x)/2 = {2.5; 0; −1.5; 0}
P(4) = (35*x^4 − 30*x^2 + 3)/8 = {4.375; 0; −3.75; 0; +0.375}
P(5) = (63*x^5 − 70*x^3 + 15*x)/8 = {7.875; 0; −8.75; 0; +1.875; 0}
P(6) = (231*x^6 − 315*x^4 + 105*x^2 − 5)/16 = {14.4375; 0; −19.6875; 0; +6.5625; 0; −0.3125}

See: Legendre Polynomial -- From Mathwords
See: Legendre Polynomial -- From Georgia State University
See: Legendre Polynomial -- From de Vincent DANIEL

Return to Matrix and Polynomial Computations
Return to Harry's Home Page


This page accessed times since October 12, 2006.
Page created by: hjsmithh@sbcglobal.net
Changes last made on Monday, 06-Aug-07 20:22:48 PDT