Skip to content

DMUCTNOTOSWWGS/randompi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Approximating pi using random numbers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published