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 redball travels exactly follow the cosine function above showing in the picture.It says my value is not the right datatype. How should I

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?

Everything else is fine just need to fix the animation parameters for the ball

Time[s] vs Postion[m]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!