WOLFRAM SYSTEM MODELER
A ball is dropped from a given height h, dropping onto a hard surface, and bouncing back according to the restitution coefficient e. This example shows the event handling capabilities of System Modeler.
Simulate with a large number of different initial heights h the ball is dropped from and show the bounces of the ball.
Varying the coefficient of restitution or the gravity shows different behavior.
Also see the balls bouncing in a 2D space in BouncingBalls2D.
In order to get the full experience of this example, you need a desktop Wolfram Language product. A free trial download is available at www.wolfram.com/mathematica/trial/
For the full example, open the accompanying notebook BouncingBalls.nb.
Description: coefficient of restitution
Description: gravity acceleration