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
)
Public Shared Function LegendreP (
l As Integer,
m As Integer,
x As Double
) As Double
public:
static double LegendreP(
int l,
int m,
double x
)
static member LegendreP :
l : int *
m : int *
x : float -> float
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:
DoubleThe value of P
l,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