Skip to main content

associated_legendre

Function associated_legendre 

Source
pub fn associated_legendre(l: u32, m: i32, x: f64) -> f64
Expand description

The associated Legendre function P_l^m(x) for |x| ≤ 1 and |m| ≤ l (zero otherwise), with the Condon-Shortley phase. Negative orders use P_l^{−m} = (−1)^m (l−m)!/(l+m)! P_l^m. Unnormalized values grow like (2m)! and overflow for orders beyond about 150; use normalized_associated_legendre for high degrees.