pub fn sweep_poly(t: &[f64], poly: &[f64], phi: f64) -> Vec<f64>
A cosine whose instantaneous frequency is the polynomial poly(t) (highest power first; SciPy’s sweep_poly): cos(2π ∫₀ᵗ poly + φ₀), phi in degrees.
poly(t)
sweep_poly
cos(2π ∫₀ᵗ poly + φ₀)
phi