3 ms·
Evaluate a polynomial using Horner’s method
- codetrotter 5y agoI was reading a book [0] and they mentioned Horner's method for evaluating polynomials. It's simple to implement. Maybe even too simple to be worthy of a crate some might say :P But yeah, I decided I wanted to put it in a crate for future use anyways, so here it is. And the crate is at https://crates.io/crates/horner https://crates.io/crates/horner [0]: ANSI Common Lisp, written by pg and published by Prentice-Hall in 1996.