Expand description
Associated Legendre functions of integer degree and the vector-wave angular functions
pi and tau, with analytic argument derivatives. Real-degree Legendre values come
from the Ferrers functions in ferrers.
Upstream: treams.special.lpmv, pi_fun and tau_fun (_waves.pyx).
StructsΒ§
- Angular
Residual - What
angular_arraysaves for its pullback: the degrees, orders, arguments and function. The pullback recomputes the local derivatives.
EnumsΒ§
- Angular
- Associated Legendre polynomial or one of the two vector-wave angular functions.
ConstantsΒ§
- PARALLEL π
- Elementwise angular evaluations and pullbacks run in parallel from this many elements.
FunctionsΒ§
- angular_
array - Broadcast angular values and a complex-argument residual; labels stay fixed.
- angular_
jet π - The angular function
kindof degreeland ordermatz, with its derivative forN = 1, after checking the labels and the argument. - angular_
jets π - The angular functions
[pi, tau]from the polar cosine and sine, with the sine factor kept explicit at the poles. - angular_
legendre π F_l^m(z) sin(theta)^power: the Legendre function forpower = |m|, andpi / mforpower = |m| - 1.- angular_
value - Angular function at a cosine argument; real Legendre values also accept real degrees.
- legendre_
factor π - Associated Legendre polynomial
F_l^mafter factoring outsin(theta)^|m|. - legendre_
factor_ πpair F_l^mandF_(l-1)^moflegendre_factors, withF_(l-1)^m = 0forl = |m|and both zero for|m| > l.- legendre_
factors π - Associated Legendre functions
F_l^mafter factoring outsin(theta)^|m|, visited for everylin|m|..=maxin order from one run of the degree recurrence. Keeping the factor explicit avoids 0/0 and cancellation in angular functions near the poles. - lpmv_
real - Associated Legendre function
P_degree^order(x)of a real argument, as a real value. - polar_
trig π [cos(theta), sin(theta)]with their derivatives. The sine takes the principal branch (nonnegative real part) and is exactly zero at the poles, wherethetais a floating-point multiple ofPI.- polarized_
angular π - Angular factor coupling the vector spherical wave
(l, m)of polarizationmode_polto a plane wave of polarizationpolwhose direction has the polar cosine and sine given:tau -+ pifor negative (0) or positive (1) helicity; in parity polarizationtaufor the modeβs own polarization andpifor the other. The polarization module states this rule for the vector waves themselves. - sine_
power π sin(theta)^power = (1 - z^2)^(power / 2)at the cosinez.- tau_
factor π tau_l^m / sin(theta)^(|m|-1)form != 0from one Legendre recurrence, by DLMF 14.10.5:sin(theta) tau = l cos(theta) P_l^m - (l + m) P_(l-1)^m.