Loading RustViz Engine...
Compute running products and reversed polynomials using standard iterator reductions.
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub fn eval_polynomial(coeffs: &[f64], x: f64) -> f64 {
// Horner's rule via rfold
coeffs.iter().rfold(0.0, |acc, &coeff| acc * x + coeff)
}