Playing Pool With PI
Instructions
- Write the number for mass (kg) of the cube in motion.
- You can also use '^' symbol for exponential notation. Eg. 100 ^ 2, to change the mass to 10000kg. Other common math symbols do not work.
Description
After watching yet another very insightful video by 3Blue1Brown:
I decided to simulate the same mathematical phenomenon, that computes the digits of PI, by making an interractive application that counts the number of collisions made by the cubes and calculates the velocities of both cubes after their ellastic collisions. The browser computes velocities from these two formulas:
After playing around with the mass of the moving object, we can find that if the Mass of the cube on the left is any one of:
With these conditions the amount of collisions happens to be the trailing digits of PI.