- #1
defiledx
- 6
- 0
Warning! All queries in the Homework section must use the Posting Template provided when a new thread is started.
Hello all! I'm trying to program a projectile motion question and I'm having some trouble with the physics that's involved.
The program allows you to input the starting height, initial velocity, launch angle and the distance to a wall (also a window on the wall, but that isn't important for this).
Now the problem states to calculate the time to the wall by t_w = d/cos(theta)*U
That's perfectly reasonable given you can input all the information.
Now it says to use that time to calculate the height at which it hits the wall.
h_w = -0.5*g*t_w^2 + U*sin(theta)*t_w + starting height
If I sub 1m starting height and 1m/s initial velocity, 45 degrees for launch angle and the time to the window (which was approx 1.4s).
The height is approx -7m and we of course take the absolute value for distance.
This is the confusing part...
It now says to calculate the final distance traveled, the height and the total time of flight.
The problem states to use a quadratic formula as h = 0, when it hits the ground.
Using 1m/s, and Sin(45), my quadratic form for time gives 0.5s for final time.
For total distance. d = Ucos(theta)*t it gives me approx 0.3m.
For height it works out to be 0, so this seems to be ok.
But HANG ON, now I have 2 different times and 2 different distances.
The other set of equations says it only travels for 0.5s and stops at 0.3m. I don't understand this... Because the problem suggests that during the motion it goes through the window.
Should I be adding the time to the wall to my final flight time?
Or should I include the input distance to d = Ucos(theta)*t somehow in the final calculation?
I'm really confused.
Hope you can help!
Thanks
The program allows you to input the starting height, initial velocity, launch angle and the distance to a wall (also a window on the wall, but that isn't important for this).
Now the problem states to calculate the time to the wall by t_w = d/cos(theta)*U
That's perfectly reasonable given you can input all the information.
Now it says to use that time to calculate the height at which it hits the wall.
h_w = -0.5*g*t_w^2 + U*sin(theta)*t_w + starting height
If I sub 1m starting height and 1m/s initial velocity, 45 degrees for launch angle and the time to the window (which was approx 1.4s).
The height is approx -7m and we of course take the absolute value for distance.
This is the confusing part...
It now says to calculate the final distance traveled, the height and the total time of flight.
The problem states to use a quadratic formula as h = 0, when it hits the ground.
Using 1m/s, and Sin(45), my quadratic form for time gives 0.5s for final time.
For total distance. d = Ucos(theta)*t it gives me approx 0.3m.
For height it works out to be 0, so this seems to be ok.
But HANG ON, now I have 2 different times and 2 different distances.
The other set of equations says it only travels for 0.5s and stops at 0.3m. I don't understand this... Because the problem suggests that during the motion it goes through the window.
Should I be adding the time to the wall to my final flight time?
Or should I include the input distance to d = Ucos(theta)*t somehow in the final calculation?
I'm really confused.
Hope you can help!
Thanks