Unformatted text preview: y ( t ) = y + v y, t1 2 gt 2 x ( t ) = x + v x, t z ( t ) = z + wt where w is the crosswind. Assume that x = z = 0 and g = 9 . 81 m/s 2 . Your script should (a) Make g a global variable. (b) Call a function that you create that allows a user to readin v x, , v y, , w and y . (c) Call a function that you create that calculates the 3D trajectory. The trajectory is complete when the ball hits the ground ( y ≤ 0). (d) Plot the trajectory with appropriate labels (e) Display in a “nice” way the ﬁnal positions and the ﬁnal velocity, ˙ y , of the ball. Test your code for v x, = 15 m/s, v y, = 12 m/s, w =2 m/s and y = 3 m....
View
Full Document
 Spring '07
 Hayes
 3 m, 2 m/s, 12 m/s, appropriate labels, following 3D plots

Click to edit the document details