Polynom
Simple library for dealing with polynomials in Rust.
To view the generated documentation, run
cargo doc --open
To run the test suite,
cargo test
Examples
A new polynomial can be created from a vector of coefficients and an indeterminate as follows:
use Polynomial;
let polynomial = new;
assert_eq!
Credits
This was inspired by Ch.1, Section 4 of Jeremy Kun's A Programmer's Introduction to Mathematics. This library is a port of the polynomial.py
class Kun provides in the GitHub repo that accompanies the book.
Note
This library is far from perfect, you probably shouldn't use it in production.