Unformatted text preview: y ( t ) = y + v y, t-1 2 gt 2 x ( t ) = x + v x, t z ( t ) = z + wt where w is the cross-wind. 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 read-in v x, , v y, , w and y . (c) Call a function that you create that calculates the 3-D 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
- 3 m, 2 m/s, 12 m/s, appropriate labels, following 3-D plots