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