Projectile motion time of impact

In summary: Vi * Sin 45° / gin summary, The conversation discusses a C program example that calculates the time of impact for a parabolic projectile launching over a hill. The output of the program shows the projectile's coordinates at different times, and the professor was able to calculate the time of impact using a minimum difference between the height of the hill and the height of the projectile. The relevant equations used in the program include calculating the time of flight and comparing the vertical height of the projectile with the height of the hill. The conversation also includes a link to the assignment and the attempt at a solution using equations.
  • #1
thintheherd
4
0

Homework Statement



This is an output of a c program example given by my professor. I have written a program that makes it as far as calculating everything but impact. I have all equations figured out except for how the time of impact was calculated.

Enter initial magnitude (0 to 250 m/s): 100
Enter initial angle (0 to 90 degrees): 45
Enter starting time (s): 7
Enter time step (s): 0.1

t x(t) y(t) H(x)
------------------------------------
7.00 494.975 255.630 216.917
7.10 502.046 255.785 226.366
7.20 509.117 255.842 235.990
7.30 516.188 255.801 245.777


Impact occurred between t= 7.30 s and 7.40 s.



Homework Equations



not sure of the relevant equations, but i tried to calculate using these formulas:
Vx = 100 × Cos 45° =
Viy = 100 × Sin 30° =
Vfy = - Viy

t = ( Vfy - Viy ) / a Time of vertical flight
t = ( -70.17 - 70.17 ) / -9.8
t = ?
being we already know the time step, where am i going wrong here?

The Attempt at a Solution



I am getting an answer of -14.28. I trying to figure out this impact equation to incorporate it into the above program. I am writing this program and I am almost done but I can't figure out how the professor figured out when the impact occurred?


Thanks!
 
Physics news on Phys.org
  • #2
Sorry, i could not figure out what you are asking ;] what is H(x)? And what kind of impact are you talking about? At t = 7.3, from your data it is seen that projectile is at its maximum height, so with what does the impact occur? With wall? Another particle?
 
  • #3
Enter initial magnitude (0 to 250 m/s): 100
Enter initial angle (0 to 90 degrees): 45
Enter starting time (s): 7
Enter time step (s): 0.1

t x(t) y(t) H(x)
------------------------------------
7.00 494.975 255.630 216.917
7.10 502.046 255.785 226.366
7.20 509.117 255.842 235.990
7.30 516.188 255.801 245.777


Impact occurred between t= 7.30 s and 7.40 s.


Ok,sorry I will try and explain better here. This is for a C program I am writing .Given the initial magnitude, angle, starting time and time step, the program calculates the time of flight and when it impacts the ground. It is simply a parabolic projectile launching over a hill. H(X) is given by the far right column. Force is not of concern and there is no air resistance. Somehow my professor was able to calculate how long the object was in the air? For example this output shows the projectile was in the air for just over .30 seconds. How is this known knowing the magnitude, angle?!? or what have you?
 
  • #4
so H(x) is the height of the hill? If it is that, then i guess that maybe your professor used some minimum difference between hill height and height of projectile at which he assumed that impact occurs and stopped iterations. For example, if you tried to do iterations until particle hits the ground (y = 0), you will put some condition, which when met stops iterations. That is something like: "if y(t)<=0 stop iterations". For your problem it could be: "if y(t)-H(x(t))<10, stop". But from the data you shown I am not sure that it is true that impact occurred between 7.3s and 7.4s
 
  • #5
Well also it might be that data at time 7.4 is simply not shown in output, and that at time 7.4 calculated value of y(t) was smaller than that of H(x(t)). And by the way, it shows that projectile was in the motion not for only 0.3 s, but for 7.3-7.4 s. Cause you starting time is 7s and from the data i guess it was launched from zero level, that is y = 0.
 
  • #6
here is a link to the assignment if this helps:

http://web.cecs.pdx.edu/~pkwong/ECE103.htm

it seems this should be a very simple thing because i have derived everything else but it is beyond me at this point.
 
  • #7
well, the relevant equations you wrote is also kinda strange ;] as i understood, you should find impact time not from some fancy formula like t= ( -70.17 - 70.17 ) / -9.8 whatever that means, but from simply calculating coordinates of projectile at each time step and comparing vertical height (that is y(t)) with the height of the hill.
 
  • #8
yeah sorry about that, thought i was on the right track
 

1. What is projectile motion time of impact?

The time of impact in projectile motion refers to the amount of time it takes for a projectile to reach its target or hit the ground. It is a crucial measurement in understanding the trajectory and velocity of a projectile.

2. How is the time of impact calculated in projectile motion?

The time of impact can be calculated using the equation: t = 2Vsinθ/g, where V is the initial velocity of the projectile, θ is the angle of launch, and g is the acceleration due to gravity. This equation assumes no air resistance.

3. How does air resistance affect the time of impact in projectile motion?

Air resistance can cause the time of impact to be longer than the calculated time without air resistance. This is because air resistance slows down the projectile, causing it to take longer to reach its target or hit the ground.

4. Can the time of impact be affected by the launch angle in projectile motion?

Yes, the time of impact can be affected by the launch angle. A higher launch angle will result in a longer time of impact, while a lower launch angle will result in a shorter time of impact. This is because the vertical component of the initial velocity affects the time of impact.

5. What factors can affect the accuracy of calculating the time of impact in projectile motion?

The accuracy of calculating the time of impact can be affected by factors such as air resistance, wind, and uneven terrain. Additionally, the initial velocity and angle of launch must be measured accurately for an accurate calculation of the time of impact.

Similar threads

  • Introductory Physics Homework Help
Replies
15
Views
1K
  • Introductory Physics Homework Help
Replies
15
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
11K
  • Introductory Physics Homework Help
Replies
13
Views
2K
Replies
4
Views
2K
  • Introductory Physics Homework Help
Replies
4
Views
2K
  • Introductory Physics Homework Help
Replies
5
Views
7K
  • Introductory Physics Homework Help
Replies
6
Views
3K
Replies
5
Views
3K
  • Programming and Computer Science
Replies
2
Views
16K
Back
Top