2 unstable releases

Uses new Rust 2024

0.4.0 Oct 23, 2025
0.3.3 Oct 9, 2025

#1593 in Math

Download history 256/week @ 2025-12-11 278/week @ 2025-12-18 172/week @ 2025-12-25 301/week @ 2026-01-01 355/week @ 2026-01-08 344/week @ 2026-01-15 586/week @ 2026-01-22 550/week @ 2026-01-29 419/week @ 2026-02-05 655/week @ 2026-02-12 597/week @ 2026-02-19 387/week @ 2026-02-26 526/week @ 2026-03-05 424/week @ 2026-03-12 279/week @ 2026-03-19 442/week @ 2026-03-26

1,723 downloads per month
Used in 3 crates (via linesweeper)

MIT/Apache

48KB
919 lines

polycool

Polynomial root-finding in Rust

dependency status Apache 2.0 or MIT license. Build status Crates.io Docs

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

use polycool::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.

Dependencies

~240KB