Eye of the Pi

March 2023

The software can approximate pi in three different ways. The first one ("Darts") is a Monte Carlo method, which uses random points to estimate the area of a circle. The second one ("Toothpicks") is a Buffon's needle simulation, which uses random needle throws to estimate the value of pi. The third one is an ellastic collision simulation, which uses the number of collisions to estimate pi.