Gravitational Simulation Of 3 Digits Of Pi

The digits of Pi are assigned mass and placed uniformly around a circle. The simulation calculates the gravitational forces between all mass pairs and moves the masses accordingly. When masses collide, they form a new mass whose speed conserves momentum in the collision.

#