From Jason Turner

[sf.cmath.sph.legendre]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp8g82igz_/{from.md → to.md} +24 -0
tmp/tmp8g82igz_/{from.md → to.md} RENAMED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Spherical associated Legendre functions <a id="sf.cmath.sph.legendre">[[sf.cmath.sph.legendre]]</a>
2
+
3
+ ``` cpp
4
+ double sph_legendre(unsigned l, unsigned m, double theta);
5
+ float sph_legendref(unsigned l, unsigned m, float theta);
6
+ long double sph_legendrel(unsigned l, unsigned m, long double theta);
7
+ ```
8
+
9
+ *Effects:* These functions compute the spherical associated Legendre
10
+ functions of their respective arguments `l`, `m`, and `theta` (`theta`
11
+ measured in radians).
12
+
13
+ *Returns:* $$\mathsf{Y}_\ell^m(\theta, 0)$$ where
14
+ $$\mathsf{Y}_\ell^m(\theta, \phi) =
15
+ (-1)^m \left[\frac{(2 \ell + 1)}{4 \pi} \frac{(\ell - m)!}{(\ell + m)!}\right]^{1/2}
16
+ \mathsf{P}_\ell^m (\cos\theta) e^{i m \phi}
17
+ \text{ ,\quad for $|m| \le \ell$,}$$ and l is `l`, m is `m`, and θ
18
+ is `theta`.
19
+
20
+ *Remarks:* The effect of calling each of these functions is
21
+ *implementation-defined* if `l >= 128`.
22
+
23
+ See also [[sf.cmath.assoc.legendre]].
24
+