Can easily derive the first few polynomials from the above equation:
L0(x) = 1
L1(x) = -x + 1
L2(x) = 1/2( x2- 4x + 2)
|
Testing the Laguerre Polynomial Method
To test the Laguerre Polynomial method, a new static method has been added. The implementation of the type of polynomials
are based on their recurrence relation. The TestLaguerrePolynomial() method has
been written, added and executed:
static void TestLaGuerrePolynomial();
{
for (int i = 0; i < t2; i++)
{
double x = 1.0 * i - 1.0;
ListBox1.Items.Add(" x = " + x + ".00, " + "L" + t1 + "(x) = " + SpecialFunctions.Laguerre(x, t1).ToString());
}
}
|