Simply computes pi using Rust programming language. The goal is not to be accurate but more to play around.
- Rust 0.12.0
- Run
cargo build
orrustc src/main.rs
- You find the command in
target/pi
Options:
-s --steps 1000 Number of steps to compute pi [default=1000]
-c --cpus Number of cpus to use for the computation
-o --optimize Optimise the computation by using multicores
-h --help print this help message and exit