From Jason Turner

[sf.cmath.legendre]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp5zmil2j_/{from.md → to.md} +22 -0
tmp/tmp5zmil2j_/{from.md → to.md} RENAMED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Legendre polynomials <a id="sf.cmath.legendre">[[sf.cmath.legendre]]</a>
2
+
3
+ ``` cpp
4
+ double legendre(unsigned l, double x);
5
+ float legendref(unsigned l, float x);
6
+ long double legendrel(unsigned l, long double x);
7
+ ```
8
+
9
+ *Effects:* These functions compute the Legendre polynomials of their
10
+ respective arguments `l` and `x`.
11
+
12
+ *Returns:* $$%
13
+ \mathsf{P}_\ell(x) =
14
+ \frac{1}
15
+ {2^\ell \, \ell!}
16
+ \frac{ \mathsf{d} ^ \ell}
17
+ { \mathsf{d}x ^ \ell} \, (x^2 - 1) ^ \ell,
18
+ \quad \mbox{for $|x| \le 1$}$$ where l is `l` and x is `x`.
19
+
20
+ *Remarks:* The effect of calling each of these functions is
21
+ *implementation-defined* if `l >= 128`.
22
+