dougbenham
Regular
Just algebra...I attached what it gave me for theta. Could you tell me how it got that? Like a step-by-step perhaps?
Let c = Cos[t].
a = s*c+y*Sqrt[1-c^2]
(a-zc)^2 = y^2-(yc)^2
(z^2-y^2)*c^2 - (2az)*c + (a^2+y^2) = 0
Then just use the quadratic formula, and it comes out.
Mm. Okay that sounds good. Now solving for phi is a bit longer. I did it in mathematica. It gives me a nice little equation. So this is all making sense now. I just have to plug in the equations to solve for the 2 angles, then plug those angles back into the rotation matrix. Hmm. Is there any way to make mathematica show its work? Or solve step-by-step? If there isn't could you perhaps point me in the right direction for how to solve for phi by hand (w/o mathematica). I have difficulty seeing places to use all the trig identities. Takes some creativity