diff options
Diffstat (limited to '26/CH2/EX2.7.7/2_7_7.sce')
-rwxr-xr-x | 26/CH2/EX2.7.7/2_7_7.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/26/CH2/EX2.7.7/2_7_7.sce b/26/CH2/EX2.7.7/2_7_7.sce new file mode 100755 index 000000000..2fe440582 --- /dev/null +++ b/26/CH2/EX2.7.7/2_7_7.sce @@ -0,0 +1,11 @@ +disp('the matrix in R2 to rotate a vector by 60 degrees is:')
+a=[cos(%pi/3) -sin(%pi/3);sin(%pi/3) cos(%pi/3)]
+disp(a)
+x=[6;8]
+disp(x,'x=')
+disp('so the 3X3 matrix for rotation about x is:')
+y=[1 0 6;0 1 8;0 0 1]
+z=[1 0 -6;0 1 -8;0 0 1]
+a=[cos(%pi/3) -sin(%pi/3) 0;sin(%pi/3) cos(%pi/3) 0;0 0 1]
+R=y*(a*z)
+disp(R)
\ No newline at end of file |