The bouncing ball program was coded in diffrent environments, including python, rhinoscript, processing, and c++.
I used the Euler integrator with correction of velocity (using conservation of energy) at each bouncing point on ground.
Bouncing Ball in RhinoScript
Bouncing Ball in Python