Ever wanted to estimate the value of pi? Now you can!
./pi-estimator <num_iters>
The algorithm compares the ratio of randomly distributed points in the x,y range (-1, 1) landing inside and outside a circle with radius 1.
The number of points is controlled by the num_iters parameter
- Install rust
cargo build --release- Binary is in target/release