org.opensourcephysics.numerics.specialfunctions
Class Hermite

java.lang.Object
  extended by org.opensourcephysics.numerics.specialfunctions.Hermite

public class Hermite
extends java.lang.Object

Calculates Hermite polynomials.

Version:
1.0
Author:
W. Christian

Method Summary
static double evaluate(int n, double x)
          Evaluates the n-th Hermite polynomial at x.
static Polynomial getPolynomial(int n)
          Gets the n-th Hermite polynomial.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPolynomial

public static Polynomial getPolynomial(int n)
Gets the n-th Hermite polynomial. If it has already been calculated it just returns it from the list. If we have not calculated it uses the recursion relationship to construct the polynomial based on the prior polynomials.

Parameters:
n - degree of polynomial

evaluate

public static double evaluate(int n,
                              double x)
Evaluates the n-th Hermite polynomial at x.

Returns:
the value of the function