Elastic collisions

This programme simulates elastic collisions, initially of only two particles and in one dimension. Users may enter the masses and initial velocities of the particles. The simulation will show the evolution of the particle's velocities and their final velocities.

The interaction between the objects is simulated by a repulsive force that falls of quickly with distance. Hence, the kinetic energy is not conserved during the collision itself.