[sf.cmath.sph.legendre] (original) (raw)

28 Numerics library [numerics]

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

28.7.6 Mathematical special functions [sf.cmath]

28.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);

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

Returns: , where is given by Formula 28.41,l is l,m is m, andθ is theta.

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