Skip to main content

associated_legendre

Function associated_legendre 

Source
pub fn associated_legendre(l: u32, m_abs: u32, cos_theta: f64) -> f64
Expand description

Evaluates associated Legendre polynomial $P_l^m(\cos\theta)$ for $0 \le m \le l$.

Includes the standard Condon-Shortley phase $(-1)^m$. Non-recursive and zero-heap.