pub fn poly_eval(c: &[f64], x: f64) -> f64
This function evaluates a polynomial with real coefficients for the real variable x.