coefficient

Function coefficient 

Source
pub(crate) fn coefficient<const N: usize>(
    mode: Mode,
    kz: Jet<N>,
    wave: Jet<N>,
    pol: u8,
    helicity: bool,
) -> Result<Jet<N>>
Expand description

The coefficient of the spherical mode mode in a regular cylindrical wave of polarization pol and axial wavenumber kz at one position, as a jet in kz and the wavenumber wave: i^(l - m) sqrt(4 pi (2l + 1) / (l (l + 1))) sqrt((l - m)! / (l + m)!) times the polarized angular function at cos theta = kz / k.

Upstream: the coefficient of treams.cw.to_sw for m equal on both sides.