Class LegendrePolynomials
- java.lang.Object
-
- dev.nm.analysis.integration.univariate.riemann.gaussian.rule.LegendrePolynomials
-
- All Implemented Interfaces:
OrthogonalPolynomialFamily
public class LegendrePolynomials extends Object implements OrthogonalPolynomialFamily
A Legendre polynomial is defined by the recurrence relation below. \[ P_0(x) = 1,\quad P_1(x) = x, \quad (n+1) P_{n+1}(x) = (2n+1) x P_n(x) - n P_{n-1}(x). \] Legendre polynomials are derived from a differential equation encountered in physics and engineering.- See Also:
- Wikipedia: Legendre polynomials
-
-
Constructor Summary
Constructors Constructor Description LegendrePolynomials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Polynomial
getPolynomial(int order)
Return an instance of the polynomial class of a given order.
-
-
-
Method Detail
-
getPolynomial
public Polynomial getPolynomial(int order)
Description copied from interface:OrthogonalPolynomialFamily
Return an instance of the polynomial class of a given order.- Specified by:
getPolynomial
in interfaceOrthogonalPolynomialFamily
- Parameters:
order
- the order of the polynomial- Returns:
- the polynomial instance
-
-