Skip to content

A short python script to compute an approximation of PI via the probability of two random numbers being co-prime and the basel problem!

Notifications You must be signed in to change notification settings

meksor/randbasel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

randbasel

A short python script to compute an approximation of PI via the probability of two random numbers being co-prime and the basel problem.

Currently 256^3 Iterations and random numbers generated between 0 and 256^2.

It uses the standard python libaries:

  • random
  • fractions
  • math
  • sys (sys.maxsize to use the maximum integer size of your system!)

python randbasel.py

About

A short python script to compute an approximation of PI via the probability of two random numbers being co-prime and the basel problem!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages