Check out more of Peter's Apps.

Pi Calculator

Red Dots Blue Dots Total Dots
0 0 0
Calculated Value of Pi Percent Error in Value of Pi
0 0


π = 4 d r d t

This program approximates the value of π by generating random points in a graph that spans from -1 to 1. If the distance from the point to the center of the graph is less than 1, it is considered inside the circle and is drawn in red. All other dots are drawn as blue.