pub fn diric(n: u32, x: f64) -> f64Expand description
Dirichlet kernel, also known as the periodic sinc function.
It is defined as
Dn(x) = sin(n x/2) / (n sin(x/2))
for n > 0.
Corresponds to scipy.special.diric in SciPy.
Note: The argument order in this crate is (n, x), whereas SciPy uses (x, n).
ยงPanics
- Panics if
nis zero.