pub fn fourier_derivative(
u: &[f64],
order: u32,
length: f64,
) -> Result<Vec<f64>, ErrorsJSL>Expand description
The order-th derivative of the periodic function sampled at u.len() equispaced points over
one period length, by multiplying its spectrum by (ik)^order. For odd orders and even
lengths the Nyquist mode is zeroed (its derivative is not representable).