Class Hermite
java.lang.Object
org.opensourcephysics.numerics.specialfunctions.Hermite
Calculates Hermite polynomials.
- Version:
- 1.0
- Author:
- W. Christian
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Method Details
-
getPolynomial
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
-