This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 04/29/2009 for the course ASE 201 taught by Professor Hayes during the Spring '07 term at University of Texas at Austin.
- Spring '07