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.17 Legendre polynomials [sf.cmath.legendre]

double legendre(unsigned l, double x); float legendref(unsigned l, float x); long double legendrel(unsigned l, long double x);

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

Returns:

P(x)=12!ddx(x21),for |x|1

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

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