|
inlineconstexpr |
Computes the value of the Legendre and associated Legendre functions of order n
( and 'm) at
x`:
For positive integer n
the standard legendre functions are polynomials:
However the function legendre must and can be called with real or complex parameters.
Parameters
n
: integral positive arguments.z
: cayley_dickson or real argumentpn
, pnm1
: cayley_dickson argumentsc
: Conditional expression masking the operation.m
: Logical value masking the operation.Return value
n
at z
is returned.successor
option implements the three term recurrence relation for the (associated) Legendre functions, \(\displaystyle \mbox{P}_{l+1} =
\left((2l+1)\mbox{P}_{l}(x)-l\mbox{P}_{l-1}(x)\right)/(l+1)\).