The Hermite polynomial satisfy the following recurrence relation:
Hn + 1(x) = 2xHn(x) - 2nHn - 1(x)
|
Testing the Hermite Polynomial Method
To test the Hermite Polynomial method, a new static method has been added. The implementation of these type of polynomials
are based on their recurrence relation. The TestHermitePolynomial() method has
been written, added and executed:
static void TestHermitePolynomial();
{
for (int i = 0; i < t2; i++)
{
double x = 1.0 * i - 1.0;
ListBox1.Items.Add(" x = " + x + ".00, " + "H" + t1 + "(x) = " + SpecialFunctions.Hermite(x, t1).ToString());
}
}
|