bivory / pi-rust

Estimating Pi using the Rust language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pi-rust

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.

Running

cargo run

Testing

cargo test

Benchmarking

cargo bench

About

Estimating Pi using the Rust language


Languages

Language:Rust 100.0%