I'm having a hard time finding a formula that calculates the initial vertical velocity for a projectile that should reach a certain height.
I'm using this formula to calculate both vertical and horizontal displacement:
This works great if I have the initial velocity, with any angle (even for motion in vertical axis only!).
Problem is that I have maximum height and angle, and I need to calculate that initial velocity. I tried the following formula:
And it works for angles other than 90 degrees (PI / 2). But I need to handle the case of vertical motion only. This angle works in the previous formula, but not here. Also obvously, I need to handle the other angles too (for which case this formula works good).
Is there any other formula I can try?