diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3293/CH8/EX8.27 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3293/CH8/EX8.27')
-rw-r--r-- | 3293/CH8/EX8.27/Ex8_27.sce | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/3293/CH8/EX8.27/Ex8_27.sce b/3293/CH8/EX8.27/Ex8_27.sce new file mode 100644 index 000000000..a91dc1932 --- /dev/null +++ b/3293/CH8/EX8.27/Ex8_27.sce @@ -0,0 +1,55 @@ +//page 304
+//Example 8.27
+clc;
+clear;
+close;
+disp('Unitary and orthogonal matrices');
+//part a
+disp('A = ');
+disp('[c]');
+disp('A is orthogonal if c = +1 or -1');
+disp('A is unitary if absolute value of c is 1, i.e. |c| = 1');
+disp('-------------------------------------------------');
+//part b
+disp('A = ');
+disp('a b');
+disp('c d');
+disp('A is orthogonal if, ');
+disp('A'' = inv(A)');
+disp('inv(A) = 1/(ad - bc) * X');
+disp('where X = ');
+disp(' d -b');
+disp('-c a');
+disp('Determinant of orthogonal matrices is +1 or -1');
+disp('So A is orthogonal if,');
+disp(' a b');
+disp('-b a');
+disp('or');
+disp('a b');
+disp('b -a');
+disp('where, a^2 + b^2 = 1');
+//part d
+disp('A is unitary if,');
+disp('A'' = inv(A)');
+disp('inv(A) = 1/(ad - bc) * X');
+disp('where X = ');
+disp(' d -b');
+disp('-c a');
+disp('Determinant of unitary matrices is +1 or -1');
+disp('So, A is unitary if,');
+disp('A = ');
+disp('a b');
+disp('-(e^i*x)*b_bar (e^i*x)*a_bar');
+disp('A = ');
+disp('1 0 * a b');
+disp('0 e^(i*x) -b_bar a_bar');
+disp('where x ia real number, and a,b are complex nos.');
+disp('|a|^2 + |b|^2 = 1');
+disp('-----------------------------------');
+//part c
+disp('A = ');
+disp('cos(thetha) -sin(thetha)');
+disp('sin(thetha) cos(thetha)');
+disp('A is orthogonal.');
+disp('If thetha is real, then A is unitary.');
+//end
|