A collection of algorithms written in Rust.
How to run examples:
git clone https://github.com/AngelTomkins/Rust-Algorithms
cd Rust-Algorithms
To run an example find the id you wish to run from the table below and run:
cargo run --example {id}
Algorithm | Example Id | Description |
---|---|---|
Leibniz | leibniz_pi | One of the most well known formulas for calculating pi, though it is very slow. (More info) |
Machin | machin_pi | A much faster formula for calculating pi which takes advantage of fast estimations of arctan (More info) |