#polynomial #macro #algebra

horner-eval

A macro for evaluating polynomials via Horner's rule

1 unstable release

0.1.0 Mar 8, 2023

#1699 in Math

MIT/Apache

10KB
154 lines

horner-eval

Usage

Add this to your Cargo.toml

[dependencies]
horner-eval = "0.1.0"

Description

If Horner's rule is appropriate for your polynomial, then, almost assuredly, you want to unroll the loop. The horner! macro provided by this crate does just that.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

horner-eval

A macro for evaluating polynomials via Horner's rule.

Dependencies

~155KB