Skip to content

This project contains various approaches to compute the pi number

License

Notifications You must be signed in to change notification settings

say-yas/project_PyPi

Repository files navigation

PyPi

This is a package that computes the pi number using various approaches. The codes are implemented by Muhammad Hammad and Sharareh Sayyad.

Collection of results:

To run all tests, use sh script_test_piapprox.sh or make the bash script executable using chmod+x script_test_piapprox.sh To run all implementations, use sh create_modules.sh

Demonstration of the methods and analyzing their performance is presented in a Jupyter notebook in the example directory.

Collection of algorithms for estimating the pi number

Our methods for evaluating $\pi$ benefit from using polygons, Monte Carlo algorithm, the continued-fraction approach, Ramanujan's formula, Leibniz formula, Chudnovsky formula, Bailey–Borwein–Plouffe formula (BBP) fromula, Gauss-Legendre algorithm and Nilakantha series. The implementation is in PIapprox directory.

Project contains:

Summary:

In summary, the project consists of the following components:

• Classes that approximate numbers.

• Methods that rely on these classes to approximate pi.

• An automated test suite forFloatNumber, RationalNumber and FixedPrecision.

• A Jupyter notebook that explains the methods and the comparison.

About

This project contains various approaches to compute the pi number

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published