1.3 KiB
1.3 KiB
[sf.cmath.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.18 Legendre polynomials [sf.cmath.legendre]
floating-point-type legendre(unsigned l, floating-point-type x); float legendref(unsigned l, float x); long double legendrel(unsigned l, long double x);
Effects: These functions compute the Legendre polynomials of their respective argumentsl and x.
Returns: Pâ(x), where Pâ is given by Formula 29.38,l is l, andx is x.
Pâ(x)=12ââ!dâdxâ(x2â1)â , for |x|â¤1(29.38)
Remarks: The effect of calling each of these functions is implementation-defined if l >= 128.