V-Lab @ ANDC

Calculating Pi(π)

Using Monte Carlo Simulation

How it Works:


The Monte Carlo method is a method of computing Pi(π). The way it works is by creating a small circle inside a square. The square should have a circle in it that covers it from top to bottom. A small arc will be placed in a random location of this square. If the arc lands inside of the circle, the amount of circles inside increments by one. To calculate π you must do the following formula:
π = 4 × (Points Inside Circle ÷ Total Points)
The higher the values of the points the closer it is to π. Enter total number of points and press Start button to start the simulation.
This is a simulation
Points Inside: Points Outside: Total Points:
0 0 0
Estimated value of Pi(π) is
0