Yea, sorry, I realized that I had said that a little after posting my problem. I'm just trying to find the best way to solve for theta, using a method that can coded relatively easily (as far as computational time is concerned).
I'm working on my engineering capstone design and part of our design requires a code we have written to calculate the appropriate zenith angle for a nerf gun to fire a projectile so that the dart hits a certain target.
We are feeding the code a target coordinate (x,y,z). One section of our...