I'm trying to calculate the initial velocity $v_0$ and angle $\theta$ for a given destination $(x, y)$ with a launch height of $y_0$. Obviously there will be a set of pairs of velocity and angle that will pass through the destination point. This set is given by $$ \left\{(v_0,\theta) \middle|y = - \frac{g}{2 v_0^2 \cdot \cos^2(\theta)} \cdot x^2 + \tan(\theta) \cdot x +y_0 \right\} \ .$$
I have already looked at this questions:
How to get the angle needed for a projectile to pass through a given point for trajectory plotting
So for example I could rewrite the set to $$\left\{ (v_0,\theta) \middle| v_0 = \frac{1}{\cos(\theta)}\sqrt{\frac{\frac{1}{2} g x^2}{x \tan(\theta)+y_0}} \right\}\ .$$
Is there an easy way to compute this set for one given destination without iterating over all possible velocities or angles?