Skip to content

EggAllocationService/pi-estimator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi Estimator

Ever wanted to estimate the value of pi? Now you can!

Usage

./pi-estimator <num_iters>

Algorithm

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

Building

  1. Install rust
  2. cargo build --release
  3. Binary is in target/release

About

Estimate pi for no good reason

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages