Question: I need help formulating the code for an advance baseball simulation in part c and d I am not sure how to set up the

I need help formulating the code for an advance baseball simulation in part c and d I am not sure how to set up the code with what I am given.

I need help formulating the code for an advance baseball simulation inpart c and d I am not sure how to set upthe code with what I am given. 9.1.2. Tasks In your analysis

9.1.2. Tasks In your analysis ShOW trajectories of pitches with and without the improved modelling. Comment on the size of the effect. (a) (b) (C) (d) Write a function C_D (v) that implements Eq. 1 and returns the value of the speeddependent quadractic drag coefcient. Plot 013(1)) over the range 0 S U S 80 m/s. [3 points] Write a function omega_f riot ion (omegaO, t) that implements Eq. 2 to model the slowdown of the spinning ball due to friction. The function should take the initial angular velocity vector can and the current time t as input and return the current value of w(t). Plot |w(t)| over the range 0 g t g 15. [3 points] Update the code in th9 . py to include the velocity-dependent drag coefcient CD(v) and the Slowing down of the angular velocity w(t) (using your functions from (a) and (b)). Write a function simulate_baseball_advanced (v0, omegaO, . . .) that returns the trajectory for one pitch with initial velocity v0 and ball angular velocity am. It Should return a N x 4 numpy array where the second axis corresponds to (t, a), y, z) [7 points] Create at least three plots for different choices of the initial velocity (which you should choose yourself) where you compare a simulation CD(v) as CD(v) = a + b -CX exp(- x2) , X

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 Programming Questions!