Math help

I attached what it gave me for theta. Could you tell me how it got that? Like a step-by-step perhaps?
Just algebra...
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 :)
 
You have solved for Cos[theta] already. The only trig identity you need is Sin = Sqrt[1-Cos^2]... you can use it to get all the equations in terms of Cos, then substitute your solution for Cos[theta] in, and solve for Cos[phi]. It will probably be nasty algebraically; not something I would care to do by hand. I'm also not familiar enough with mathematica to know if you can force it to show steps.
 
You have solved for Cos[theta] already. The only trig identity you need is Sin = Sqrt[1-Cos^2]... you can use it to get all the equations in terms of Cos, then substitute your solution for Cos[theta] in, and solve for Cos[phi]. It will probably be nasty algebraically; not something I would care to do by hand. I'm also not familiar enough with mathematica to know if you can force it to show steps.

Awesome. Thanks for your help. It worked out perfectly in my program. It works extremely well. I can rotate to any point now :)
 
Back
Top