Class Legendre

  extended by org.opensourcephysics.numerics.Legendre

public class Legendre
extends java.lang.Object

Legendre defines Legendre Polynomials based on of Alan Jeffrey's Handbook of Mathematical Formulas an Integrals. Please see page 286-288. Information also obtained from: This code is based on the Open Source Physics class for Hermite polynomials.

Nick Dovidio

Method Summary
static Polynomial getPolynomial(int n)
          Gets the nth Legendre polynomial.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static Polynomial getPolynomial(int n)
Gets the nth Legendre 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 calculate based off of the prior polynomials.