poly-cool

Crates.iopoly-cool
lib.rspoly-cool
version0.3.3
created_at2025-08-03 22:20:11.838771+00
updated_at2025-08-29 17:44:43.362663+00
descriptionPolynomial root-finding
homepage
repositoryhttps://github.com/jneem/poly-cool
max_upload_size
id1780142
size101,738
Chad Brokaw (dfrg)

documentation

README

poly-cool

GitHub Actions CI status. Latest published version. Documentation build status.

A rust crate for numerically finding roots of low-degree polynomials.

use poly_cool::Poly;

// The polynomial x^3 - 6x^2 + 11x - 6
let p = Poly::new([-6.0, 11.0, -6.0, 1.0]);

dbg!(p.roots_between(-10.0, 10.0, 1e-6));
// [0.9999999999999996, 2.0000000000000018, 2.9999999999999982]

Currently, we implement Yuksel's iterative solver for finding roots within a given interval to a specified target accuracy.

Commit count: 41

cargo fmt