Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 671 Bytes

README.md

File metadata and controls

17 lines (15 loc) · 671 Bytes

randompi

Approximating pi using random numbers

I learned this technique from Matt Parker's video and stole the coprimacy test from here.

Usage

To make running easier, I have written run.sh to do things automatically.

Examples

To run in parallel, use the following syntax:

./run.sh parallel <CPUs> <trials>

To run in serial (you don't really need run.sh for this), use this syntax instead:

./run.sh <trials>

run.sh does not recompile the program if it has been compiled already. To manually recompile, just use make and make parallel.