Function rgsl::legendre::associated_polynomials::legendre_sphPlm [] [src]

pub fn legendre_sphPlm(l: i32, m: i32, x: f64) -> f64

This routine computes the normalized associated Legendre polynomial \sqrt{(2l+1)/(4\pi)} \sqrt{(l-m)!/(l+m)!} P_lm(x) suitable for use in spherical harmonics. The parameters must satisfy m >= 0, l >= m, |x| <= 1. This routine avoids the overflows that occur for the standard normalization of P_lm(x).