pub fn quadratic_interpolation(x: f64, xs: &[f64], ys: &[f64]) -> f64
Expand description
Performs quadratic interpolation for the point x
given vectors of abscissas xs
and ordinates ys
.
§Panics
Panics if xs.len() < 3
or xs.len() != ys.len()
.