Skip to main content

poly_impulse

Function poly_impulse 

Source
pub fn poly_impulse<T: Number + Float + Base<T> + FloatOps<T>>(
    k: T,
    x: T,
    n: T,
) -> T
Expand description

returns a quadratic impulse (y position on a graph for x); n is the degree of the polynomial and k controls the stretching of the function