Skip to content

Page-David/PiPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py-pi

Clculate pi to thousands of digits with Python

This project is aim to analye bunch of algorithms for thousands of digits of pi using Python. Also the main.py is able to test other algorithms if you like.

Example output

Time analyse

So far Gauss Legendre method wins.

Accurancy analyse

Basicly, every algorithm used output right answer.

Dependence

Python 2.7

Sagemath used for generate data figure

mpmath avaliable on pip: pip install mpmath used in reverse tan algo

Usage

clone the repo: git clone https://github.com/Page-David/PiPy.git

go into this directory: cd PiPy

Run the python script: ./main.sage [-h] [--max-time SECOND] [--step STEP] digits

./main.sage -h for more help.

FAQ

Why Python?

Some people asked why Python is used, why not a language able to compiled?

First of all, effiency and fast are quite different word. The aim of this project is to analyse different algorithms, but not to calculate more digits ASAP. Also, Python is more easier to get algorithms to work as there are many modules like mpmath.

Contribution or feedback

Just send an issue or pull request.

About

Algorithms for pi using Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages