This project explores various methods to approximate the value of pi. The following methods are implemented:
- Infinite Series
- Monte Carlo Simulation
- Co-Prime Method
- Dart Game
The project directory is structured as follows:
pi_approximation/
- Co-Prime Method/
- notebook.ipynb
- Dart Game/
- notebook.ipynb
- Infinite Series/
- notebook.ipynb
- Monte Carlo Simulation/
- notebook.ipynb
- Miscellaneous/
- notebook.ipynb
- README.txt
- requirements.txt
To run the code, make sure you have the required dependencies installed. You can install them using the requirements.txt file:
pip install -r requirements.txt
Navigate to the respective method's directory and open the corresponding notebook file. Execute the code cells to see the results of the approximation method.
The notebook files for each method contain the code and output showcasing the approximation of pi. The results are displayed with an accuracy metric indicating how close the approximation is to the true value of pi.
This project is licensed under the MIT License.