org.opensourcephysics.numerics
Class Legendre

java.lang.Object
  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: http://mathworld.wolfram.com/LegendrePolynomial.html This code is based on the Open Source Physics class for Hermite polynomials.

Version:
1.0
Author:
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

getPolynomial

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.