Calculating PI
Dividing the number of raindrops that hit the circle and the square and multiplying the result by 4 gives an approximation to PI. This approximation gets better with time.
This demo is directly inspired by this real-life experiment: See it on Reddit
Number of raindrop impacts so far:
0
Current approximation:
N/A
Closest approximation:
N/A
(at impact #:
)
Actual PI: