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
- Host: GitHub
- URL: https://github.com/donno2048/pi
- Owner: donno2048
- Created: 2020-10-30T12:17:53.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-01T17:53:14.000Z (about 3 years ago)
- Last Synced: 2025-02-24T11:16:59.958Z (9 months ago)
- Topics: algorithm, benchmark, pi, python, testing
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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_