Monte Carlo simulations are computational algorithms that rely on sampling of random numbers. Simulation of random numbers is then repeated numerous times in order to estimate something. This program allows for a numerical determining the value of
This way, the problem of calculating the numerical value of π is transformed into the problem of determining the ratio
Simulation allows calculation of the number π in two ways:
- By setting the repetition number of a simulation.
- By setting the number of decimal places we want to calculate.
Note: The simulator is limited to 16 digit precision when using the second option due to limitation of type double.
- Refactor code
- Implement coordinate system visualization.
-
Remove limit when calculating number π using number of decimal places. - Adjust the rendering frame rate in order to avoid lagging.