pub(crate) fn legendre_factors<const N: usize>(
max: i32,
m: i32,
z: Jet<N>,
visit: impl FnMut(Jet<N>),
)Expand description
Associated Legendre functions F_l^m after factoring out sin(theta)^|m|, visited
for every l in |m|..=max in order from one run of the degree recurrence. Keeping
the factor explicit avoids 0/0 and cancellation in angular functions near the poles.