pub fn poly_eval(coeffs: &[f64], x: f64) -> f64
Evaluate a polynomial given ascending coefficients at x (Horner).
x