Files
cppdraft_translate/cppdraft/sf/cmath/sph/legendre.md
2025-10-25 03:02:53 +03:00

1.7 KiB
Raw Blame History

[sf.cmath.sph.legendre]

29 Numerics library [numerics]

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

29.7.6 Mathematical special functions [sf.cmath]

29.7.6.21 Spherical associated Legendre functions [sf.cmath.sph.legendre]

🔗

floating-point-type sph_legendre(unsigned l, unsigned m, floating-point-type theta); float sph_legendref(unsigned l, unsigned m, float theta); long double sph_legendrel(unsigned l, unsigned m, long double theta);

1

#

Effects: These functions compute the spherical associated Legendre functions of their respective argumentsl, m, and theta (theta measured in radians).

2

#

Returns: Yℓm(θ,0), where Yℓm is given by Formula 29.41,l is l,m is m, andθ is theta.

„“m(θ,ϕ)=(−1)m[(2ℓ+1)4π„“−m)!(ℓ+m)!]1/2Pℓm(cosθ)eimϕ , for |m|≤ℓ(29.41)

3

#

Remarks: The effect of calling each of these functions is implementation-defined if l >= 128.

4

#

See also [sf.cmath.assoc.legendre].