Code:
A projectile is launched off of a 20 foot high wall at an angle of 25 degrees and a velocity of 30ft/sec
I'm leaving a few details out, but basically I need to find how far away from the wall the projectile lands at y = 0
Breaking the initial velocity into vertical and horizontal components, I have Vo upwards = 30sin(25) and Vo horizontal = 30cos(25)
Gravity = -32ft/s^2
So for position at time t, x(t) = 30cos(25)t and y(t) = 30sin(25)t - 32t^2 + 20
Solving for 0 = 30sin(25)t - 32t^2 + 20 I get t approx = 1 (we only care about a positive time here)
substituting t = 1 back into x(t) I get how far the projectile went, horizontally, before landing.
The above is how I would have done it in high school physics, but I'm supposed to setup and solve IVPs for x and y.
So my initial conditions are:
x''(t) = 0, x'(0) = 30cos(25), x(0) = 0
y''(t) = -32ft/sec^2, y'(0) = 30sin(25), y(0) = 20feet
I'm not sure what I should do from here? I know I will have to integrate, such like int(x''(t)) = C = 30cos(25)
Can someone give me a hand please?
Thanks!