summaryrefslogtreecommitdiff
path: root/70/CH3/EX3.4.1/3_4_1.sci
blob: 3b9c0e549949ea8b310823c9258ef2b19fcb4c7a (plain)
1
2
3
4
5
6
7
8
9
10
//page 175
clear;
close;
clc;
thetha=45;//Taking some value for thetha.
Q=[cos(thetha) -sin(thetha);sin(thetha) cos(thetha)];
disp(Q,'Q=');
disp(Q','Q''=inv(Q)=');
disp('Q rotates every vector through an angle thetha, and Q'' rotates it back through -thetha.The columns are clearly orthogonal and they are orthonormal because sin^2(theta)+cos^2(thetha)=1.');
//end