29 Numerics library [numerics]

29.9 Mathematical functions for floating-point types [c.math]

29.9.5 Mathematical special functions [sf.cmath]

29.9.5.20 Spherical associated Legendre functions [sf.cmath.sph_legendre]

double sph_legendre(unsigned l, unsigned m, double theta); float sph_legendref(unsigned l, unsigned m, float theta); long double sph_legendrel(unsigned l, unsigned m, long double theta);

Effects: Эти функции вычислить сферические функции Лежандра связанные с их соответствующих аргументов l, mи theta (theta в радианах).

Returns:

Ym(θ,0)

куда

Ym(θ,ϕ)=(1)m[(2+1)4π(m)!(+m)!]1/2Pm(cosθ)eimϕ,for |m|

и l есть l, m есть mи θ есть theta.

Remarks: Эффект от вызова каждой из этих функций определяется реализацией if l >= 128.

См. Также [sf.cmath.assoc_legendre].