From course of mechanic, we know, that to find distance, passed by a body thrown by an angle, we need to use that formula:
Sy(t) = V0 * sin(angle) * t - (gtt) / 2;
Sx(t) = V0 * cos(angle) * t;
My question is, how do we find the right starting velocity, if we know the distance body must pass (Sx and Sy) and angle (let's say, it's 45 degrees)?
I tried to derive formula, but it seems to be wrong:
V0 = ( Sy(t) + (g * t * t) / 2 ) / sin(angle_in_rads);