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