Exercise 5

1 reinit

Write a model BilliardBalls, with two billiard balls that is rolling from opposite directions and bounces into each other.

1.1 Tip

reinit(x, value) is the sam thing as x := value, but reinit reinitializes the value of x at a specific time and the equations still holds.


1.2.1 BilliardBalls

1.2.2 Simulation of BilliardBalls