Question: How should I write an animation code that let the red ball travels exactly follow the cosine function above showing in the picture. It says



How should I write an animation code that let the red ball travels exactly follow the cosine function above showing in the picture. It says my value is not the right datatype. How should I call the x and y data for the ball?
Time[s] vs Postion[m]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
