public static double LegendreP(
int ell,
double x
)Public Shared Function LegendreP (
ell As Integer,
x As Double
) As Doublepublic:
static double LegendreP(
int ell,
double x
)static member LegendreP :
ell : int *
x : float -> float Legendre polynomials are orthogonal on the interval [-1,1].

The values returned by this are fully accurate (14-16 decimal digits) over the full range of arguments for orders up to one million.
| ArgumentOutOfRangeException | x lies outside [-1,+1]. |