Consider the following system of 3 linear equations and 4 unknowns, represented in matrix multiplication form as follows:
$$\begin{bmatrix}C_1&C_2&C_3&C_4\end{bmatrix}\begin{bmatrix} \cos(t) \\ \sin(t) \\ u \\ v \end{bmatrix}=C_0$$
where $C_i$ ($0\leq i\leq 4$) is a 3D column vector.
How can this system be solved for $u$, $v$ and $t$?
Edit:
Method 1: (Ross Millikan's answer)
Let $c=\cos(t)$. We have $\sin(t)=\pm\sqrt{1-c^2}$.
Here $C_i^2=\begin{bmatrix}c_{i,1}^2&c_{i,2}^2&c_{i,3}^2\end{bmatrix}^T$
$$(1-c^2)C_2^2=(C_0-cC_1-uC_3-vC_4)^2$$
$$C_2^2-C_0^2=c^2(C_1^2+C_2^2)+u^2C_3^2+v^2C_4^2-2cC_0C_1-2uC_0C_3-2vC_0C_4+2cuC_1C_3+2cvC_1C_4+2uvC_3C_4$$
And it stops here; anybody knows how to solve this?
Method 2:
Let $A=\begin{bmatrix}C_1&C_2&C_3&C_4\end{bmatrix}$ and $X=\begin{bmatrix}\cos(t)&\sin(t)&u&v\end{bmatrix}^T$.
The system becomes:
$$AX=C_0$$
Using the pseudo-inverse of $A$:
$$X=A^T(AA^T)^{-1}C_0$$
$$A^T=\begin{bmatrix}C_1^T\\C_2^T\\C_3^T\\C_4^T\end{bmatrix}\quad and\quad (AA^T)^{-1}=(C_1C_1^T+C_2C_2^T+C_3C_3^T+C_4C_4^T)^{-1}$$
$AA^T$ and $C_iC_i^T$ are symmetric 3-by-3 matrices.
However I don't know of a way to expand $(AA^T)^{-1}$ while keeping $C_i$ intact.
Let $c=\cos(t), \sin (t)= \pm \sqrt {1-c^2}$ and you have three equations in three unknowns. You have to solve it twice, once for each sign of $\sin(t)$ and getting rid of the square root may introduce extraneous solutions.