legendre
Computes associated Legendre functions of degree
levaluated for elementsxlmust be a scalar integer andxmust contain real values ranging -1 <=x<= 1Unnormalized associated Legendre function values will overflow for
l> 150
Calling Sequence
from gravity_toolkit.legendre import legendre
Pl = legendre(l, x)
- gravity_toolkit.legendre(l, x, NORMALIZE=False)[source]
Computes associated Legendre functions for a particular degree following Abramowitz and Stegun [2], Jacobs [32]
- Parameters:
- l: int
degree of Legendre polynomials
- x: np.ndarray
elements ranging from -1 to 1
Typically
cos(theta), wherethetais the colatitude in radians- NORMALIZE: bool, default False
Fully-normalize the Legendre Functions
- Returns:
- Pl: np.ndarray
legendre polynomials of degree
l