# Horner Eval Evaluate polynomial coefficients supplied from highest to lowest degree. An empty polynomial evaluates to zero. Scientific and numerical methods · library · 0.1.1 ## Function ```blyx pub fn horner_eval(coefficients: vector, x: f64) -> f64 ``` Use finite numeric values. Integer arithmetic assumes that intermediate results fit signed 64-bit storage. All indices are zero-based unless the contract above states otherwise. | Inputs in declaration order | Expected result | |---|---| | `[2,-3,4],2.0` | `6` | | `[5],9.0` | `5` | | `[],3.0` | `0` | ## Try the published project ```sh nest demo horner_eval@0.1.1 blyxc native-run horner_eval-demo/main.blyx ``` Install with `nest add horner_eval@0.1.1` and import `vendor::horner_eval::horner_eval`. Maintained by Rahul Chaube. [Blyx](https://www.blyx-lang.space) · [GitHub](https://github.com/Rahulchaube1) · [LinkedIn](https://www.linkedin.com/in/rahulchaube1) · [Sponsor](https://github.com/sponsors/Rahulchaube1)