A simple example program in Rust that estimates Pi using Monte Carlo simulations.
The program will estimate Pi in a single thread and by spawning as many threads as there are CPU cores.
cargo run
cargo test
cargo bench
Estimating Pi using the Rust language
A simple example program in Rust that estimates Pi using Monte Carlo simulations.
The program will estimate Pi in a single thread and by spawning as many threads as there are CPU cores.
cargo run
cargo test
cargo bench
Estimating Pi using the Rust language