OrthogonalPolynomialsLegendreP Method (Int32, Double) |
Computes the value of a Legendre polynomial.
Namespace:
Meta.Numerics.Functions
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static double LegendreP(
int l,
double x
)
Public Shared Function LegendreP (
l As Integer,
x As Double
) As Double
public:
static double LegendreP(
int l,
double x
)
static member LegendreP :
l : int *
x : float -> float
Parameters
- l
- Type: SystemInt32
The order, which must be non-negative. - x
- Type: SystemDouble
The argument, which must lie on the closed interval between -1 and +1.
Return Value
Type:
DoubleThe value of P
l(x).
Exceptions Remarks Legendre polynomials are orthogonal on the interval [-1,1].
See Also