A program for approximate calculation of pi using the Monte Carlo method.
- Python version 3.6+
git clone git@github.com:snjot/pimonte.git
cd pimonte
You can calculate pi approximation as follows:
% python -m pimonte
pi = 3.1413028; (1.8547039031982422 sec)