This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: %y = vy * (x/vx) - (1/2) * g * (x/vx)^2 %y = x * (vy/vx) - (1/2) * g * (x/vx)^2 %tan (a) = vy / vx %y = x * tan (a) - (1/2) * g * (x/vx)^2 %solve for vx when y=0: vx = x / sqrt((2/g) * x * tan(a)) %find value for t: t = x / vx %solve for vy: vy = vx * tan(a) %find maximum height (y value) by setting t=t/2 (since trajectory is symmetrical) y = vy * (t/2) - (1/2) * g * (t/2)^2 %solve for initial velocity (vi): vi = vx / cos(a) %convert intial velocity from feet per second to miles per hour: vi = vi *(1/5280) * 60 * 60 %display quantities fprintf('Initial Velocity = %.1f miles per hour\n', vi) Sheet1 Page 2 fprintf('Maximum Height = %.1f feet\n', y) fprintf('Time of Flight = %.1f seconds\n', t)...
View Full Document
This note was uploaded on 01/22/2011 for the course ENG 006 taught by Professor Lagerstrom during the Spring '06 term at UC Davis.
- Spring '06