Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 944 Bytes

File metadata and controls

35 lines (22 loc) · 944 Bytes

Pi Approximation Algorithms

This project contains a collection of Python implementations for approximating $\pi$ using different mathematical methods, including Chudnovsky, Machin-like formulas, Leibniz, Borwein, and more.

Features

  • Multiple Pi approximation algorithms in separate Python files
  • A central launcher to choose and run methods interactively
  • Optimized implementations that preserve the original mathematical logic
  • Simple test coverage for selected algorithms

How to Run

  1. Open the project folder.
  2. Run the launcher:
python Pi_approximation_algorithm.py
  1. Choose a method from the menu.

Project Structure

  • Pi_approximation_algorithm.py – interactive menu to run algorithms
  • *.py – individual Pi approximation implementations
  • tests/ – basic regression tests for optimized methods

Requirements

  • Python 3.x

License

This project is provided for educational purposes.