If I have the two following equations:
$$\begin{align} A &= F\sin(x)+ G\cos(x)\\ B &= G\sin(x)+ F\cos(x) \end{align}$$
and $A$,$B$,$F$,$G$ and are all constants, what is the easiest method of calculating $x$?
I've had a look at Cramers rule and the $R\cos(x-\alpha)$ rule. I need to find the most effective method for a program I am writing!
Use $A^2+B^2=F^2+G^2+2FG\sin 2x,\,A^2-B^2=(G^2-F^2)\cos 2x$ to get $\sin 2x,\,\cos 2x$.