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.2 Associated Legendre functions [sf.cmath.assoc_legendre]

double assoc_legendre(unsigned l, unsigned m, double x); float assoc_legendref(unsigned l, unsigned m, float x); long double assoc_legendrel(unsigned l, unsigned m, long double x);

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

Returns:

Pm(x)=(1x2)m/2dmdxmP(x),for |x|1

где l есть l, m есть mи x есть x.

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