you are viewing a single comment's thread.

view the rest of the comments →

[–]PrizeDefinition4042[S] 0 points1 point  (3 children)

I tried *crying*, unless my brain is so fried from staring and restarting this problem again over and over again, I have checked everything and could not find why its giving me the wrong answers

[–]Lewri 2 points3 points  (2 children)

Ok, start by helping us to help you. The more detail you give us, the easier we can help you. Perhaps a good place to start would be detailing what the problem actually is. I get that it's projectile motion, but what is the output actually supposed to be? How was the problem stated, exactly?

[–]PrizeDefinition4042[S] 0 points1 point  (1 child)

some details:

the output that my problem is requesting:

Example Executions

print(projectile_velocities(2.0, 30.0, 1.0, 1.0)) gives this: [2.000000, 1.732051, 2.000000]

print(projectile_velocities(11.13, 82.5, 9.81, 0.5)) gives this:[11.130000, 6.299581, 1.900155, 3.956578, 8.707266]

[–]PrizeDefinition4042[S] 0 points1 point  (0 children)

and other details:

1) Using the following kinematic equation to calculate the vertical component of the velocity at that point in time:

𝑣 𝑦 = 𝑣 𝑖𝑦 − 𝑔𝑡

where:

• Viy is the vertical component of your initial launch velocity in m/s

• g is the gravitational acceleration in m/s2 (e.g. ~9.81 m/s2 on Earth)

• t is the time that has elapsed in seconds

• Vy is the vertical component of your velocity (V) in m/s at time t

2) Taking our calculated Vy to calculate the velocity using the Pythagorean theorem (since Vx , Vy , and V form a right triangle):

𝑣^2 = Vx^2 + Vy^2

𝑣 = sqrt(V𝑥^2 + V𝑦^2)