An open API service indexing awesome lists of open source software.

https://github.com/donno2048/pi

Top 10 algorithms to get pi and one weird code to test them all
https://github.com/donno2048/pi

algorithm benchmark pi python testing

Last synced: 5 months ago
JSON representation

Top 10 algorithms to get pi and one weird code to test them all

Awesome Lists containing this project

README

          

# Pi

These are ten algorithms in python to calculate pi without any imports.

Mathematically they all converge to pi but python has limited accuracy causing each algorithm to be slightly inaccurate.

I ran each one to the maximum accuracy it can get (if the time isn't huge) and printed the output

To run it just run _main.py_