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

public class Hermite extends Object
Calculates Hermite polynomials.
Version:
1.0
Author:
W. Christian
  • Method Details

    • 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