i.l Messages 1 Reaction score 0 Thread starter Jun 5, 2010 #1 Hey, When trying to multiply the 2 attached matrixes (row X column) I get a much more terms then the attached answer. C is for cos and s for sin. What am I doing wrong? Regards, i.l Attachments matrix.JPG 12.9 KB · Views: 428
Hey, When trying to multiply the 2 attached matrixes (row X column) I get a much more terms then the attached answer. C is for cos and s for sin. What am I doing wrong? Regards, i.l
elibj123 Messages 237 Reaction score 2 Jun 5, 2010 #2 You mean you don't have terms canceling out? I suggest working carefully and invoking some trigonometric identities.
You mean you don't have terms canceling out? I suggest working carefully and invoking some trigonometric identities.
Mark44 Mentor Insights Author Messages 38,139 Reaction score 10,726 Jun 5, 2010 #3 I get it that c stands for cosine and s stands for sine, but what does c1 mean? Cosine of what? Sine of what? In one of your multiplications you have c1 in one matrix and c2 in the other, and you wrote the product as c12. What does that mean?
I get it that c stands for cosine and s stands for sine, but what does c1 mean? Cosine of what? Sine of what? In one of your multiplications you have c1 in one matrix and c2 in the other, and you wrote the product as c12. What does that mean?
Simon_Tyler Messages 312 Reaction score 1 Jun 5, 2010 #4 Simply typing it into Mathematica and using FullSimplify gets the results that you want. It is merely a combination of trig identities - namely the http://en.wikipedia.org/wiki/List_of_trigonometric_identities#Angle_sum_and_difference_identities". The tricky bit is in the top 2*2 block - I suggest you look at the math for multiplying 2d rotation matrices. [tex]A(\text{x$\_$})\text{:=}\left(<br /> \begin{array}{cccc}<br /> \cos (x) & -\sin (x) & 0 & a(x) \cos (x) \\<br /> \sin (x) & \cos (x) & 0 & a(x) \sin (x) \\<br /> 0 & 0 & 1 & 0 \\<br /> 0 & 0 & 0 & 1<br /> \end{array}<br /> \right)[/tex] [tex]A(x).A(y)=\left(<br /> \begin{array}{cccc}<br /> \cos (x+y) & -\sin (x+y) & 0 & a(x) \cos (x)+a(y) \cos (x+y) \\<br /> \sin (x+y) & \cos (x+y) & 0 & a(x) \sin (x)+a(y) \sin (x+y) \\<br /> 0 & 0 & 1 & 0 \\<br /> 0 & 0 & 0 & 1<br /> \end{array}<br /> \right)[/tex] Last edited by a moderator: Apr 25, 2017
Simply typing it into Mathematica and using FullSimplify gets the results that you want. It is merely a combination of trig identities - namely the http://en.wikipedia.org/wiki/List_of_trigonometric_identities#Angle_sum_and_difference_identities". The tricky bit is in the top 2*2 block - I suggest you look at the math for multiplying 2d rotation matrices. [tex]A(\text{x$\_$})\text{:=}\left(<br /> \begin{array}{cccc}<br /> \cos (x) & -\sin (x) & 0 & a(x) \cos (x) \\<br /> \sin (x) & \cos (x) & 0 & a(x) \sin (x) \\<br /> 0 & 0 & 1 & 0 \\<br /> 0 & 0 & 0 & 1<br /> \end{array}<br /> \right)[/tex] [tex]A(x).A(y)=\left(<br /> \begin{array}{cccc}<br /> \cos (x+y) & -\sin (x+y) & 0 & a(x) \cos (x)+a(y) \cos (x+y) \\<br /> \sin (x+y) & \cos (x+y) & 0 & a(x) \sin (x)+a(y) \sin (x+y) \\<br /> 0 & 0 & 1 & 0 \\<br /> 0 & 0 & 0 & 1<br /> \end{array}<br /> \right)[/tex]