Question: Based on Example 3.6, develop a script to produce an animation of a bouncing ball where 0 = 5 m/s and 0 =

Based on Example 3.6, develop a script to produce an animation of a bouncing ball where ν= 5 m/s and θ= 50°. To do this, you must be able to predict exactly when the ball hits the ground. At this point, the direction changes (the new angle will equal the negative of the angle at impact), and the velocity will decrease in magnitude to reflect energy loss due to the collision of the ball with the ground. The change in velocity can be quantified by the coefficient of restitution CR which is equal to the ratio of the velocity after to the velocity before impact. For the present case, use a value of CR 0.8.

Example 3.6

In the absence of air resistance, the Cartesian coordinates of a pro-

In the absence of air resistance, the Cartesian coordinates of a pro- jectile launched with an initial velocity (vo) and angle (0) can be computed with x = vo cos(0)t y = vo sin(e)t -0.5gt where g = 9.81 m/s. Develop a script to generate an animated plot of the projectile's trajectory given that vo = 5 m/s and 0 = 45.

Step by Step Solution

3.31 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python script to produce an animation of a bouncing ball with given initial velocity and ang... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Applied Numerical Methods Questions!