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

public class Legendre extends Object
Computes Laguerre polynomials and associated Laguerre polynomials.
Version:
1.0
Author:
W. Christian
  • Method Details

    • getPolynomial

      public static Polynomial getPolynomial(int el)
      Gets the el-th Legendre 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.
    • getAssociatedFunction

      public static Function getAssociatedFunction(int el, int m)
      Gets the associated Legendre function. If the function has already been calculated it is returned from the map. Uses the Legendre polynomial recurrence relationship to construct new functions based on derivatives of lower order polynomials.
    • evaluate

      public static double evaluate(int el, double x)
      Evaluates the el-th Legendre polynomial at x.
      Returns:
      the value of the function