Simulate a Bouncing Ball

    
Model a bouncing ball using WhenEvent to detect and simulate the bounces:
In[24]:=
Click for copyable input
Out[27]=
Model 40 bouncing balls falling from different heights:
In[28]:=
Click for copyable input
Out[28]=
Model a ball bouncing down stairs:
In[29]:=
Click for copyable input
In[31]:=
Click for copyable input
Out[31]=
New to Mathematica? Find your learning path »
Have a question? Ask support »