Thys pose la question : Hi
I have a problem with the formula that i use .(for programming)
I have looked all over the web to find a solution but no luck.
I have a cannon that shoots a ball at a target
I use this formula to calculate what my initial velocity must be to hit the target
at a angle of 30 degrees and a distance of 15m (the cannon and target position is known)
It works perfectly if both is at same height but if one is higher or lower it miss.

In an example I am working with the range is 30m, the angle is 45 degrees and the target is 10m higher than my position.
Please help
Formula = V0 = √RG / Sin(2α) Harley Weston lui répond.

A student pose la question : Artillerymen on a hillside are trying to hit a target behind a mountain on the other side of a river. Their cannon is at (x, y) = (3, 250) where x is in kilometers and y is in meters. The target is at (x, y) = (-2, 50). In order to avoid hitting the mountain on the other side of the river, the projectile from the cannon must go through the point (x, y) = (-1, 410).