Click or drag to resize

OrthogonalPolynomialsLegendreP Method (Int32, Int32, Double)

Computes the value of an associated Legendre polynomial.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static double LegendreP(
	int l,
	int m,
	double x
)

Parameters

l
Type: SystemInt32
The order, which must be non-negative.
m
Type: SystemInt32
The associated order, which must lie between -l and l inclusive.
x
Type: SystemDouble
The argument, which must lie on the closed interval between -1 and +1.

Return Value

Type: Double
The value of Pl,m(x).
Remarks

Associated Legendre polynomials appear in the definition of the SphericalHarmonic(Int32, Int32, Double, Double) functions.

For values of l and m over about 150, values of this polynomial can exceed the capacity of double-wide floating point numbers.

See Also