Collision
In an elastic collision (e = 1), both momentum and kinetic energy are conserved.
In an inelastic collision (0 <= e < 1), momentum is conserved but kinetic energy is reduced.
In a completely inelastic collision (e = 0), the 2 particles stick together after collision.
Newton's Law of Restitution applies in all cases.
To simulate collision with a wall, set m1 to a large value and u1 = 0.
In a collision with a wall, momentum is not conserved.
Right-click here to download this page and the Java Class File.