/Rust-Algorithms

Primary LanguageRustMIT LicenseMIT

Rust-Algorithms

A collection of algorithms written in Rust.

Examples

How to run examples:

Download the code:
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}

Pi

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)