org.opensourcephysics.numerics.specialfunctions
Class Laguerre

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

public class Laguerre
extends java.lang.Object

Computes Laguerre polynomials and associated Laguerre polynomials.

Version:
1.0
Author:
W. Christian

Method Summary
static double evaluate(int n, double x)
          Evaluates the n-th Laguerre polynomial at x.
static Polynomial getPolynomial(int n)
          Gets the n-th Laguerre polynomial.
static Polynomial getPolynomial(int n, int k)
          Gets the associated Laguerre 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 Laguerre polynomial. If the polynomial has already been calculated it is returned from the list. Uses the recurrence relationship to construct new polynomials based on lower order polynomials.


getPolynomial

public static Polynomial getPolynomial(int n,
                                       int k)
Gets the associated Laguerre polynomial. If the polynomial has already been calculated it is returned from the list. Uses the recurrence relationship to construct new polynomials based on lower order polynomials.


evaluate

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

Returns:
the value of the function