diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /26/CH5/EX5.3.7 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '26/CH5/EX5.3.7')
-rwxr-xr-x | 26/CH5/EX5.3.7/5_3_7.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/26/CH5/EX5.3.7/5_3_7.sce b/26/CH5/EX5.3.7/5_3_7.sce new file mode 100755 index 000000000..234d38b9e --- /dev/null +++ b/26/CH5/EX5.3.7/5_3_7.sce @@ -0,0 +1,25 @@ +disp('the given matrix is:')
+a=[1 0;6 -1]
+disp(a,'A=')
+disp('Since A is triangular, eigenvalues are the diagonal entries.')
+disp(a(2,2),a(1,1),'Eigenvalues are:')
+disp('for lambda=1')
+disp('A-1I=')
+b=a-eye(2,2)
+disp(b)
+disp('Hence, x1=(1/3)x2 with x2 as free variable.')
+disp('Eigenvector corresponding to lambda=1 is:')
+u1=[1;3]
+disp(u1)
+disp('for lambda=-1')
+disp('A-(-1)I=')
+b=a+eye(2,2)
+disp(b)
+disp('Hence, x1=0 with x2 as free variable.')
+disp('Eigenvector corresponding to lambda=-1 is:')
+u2=[0;1]
+disp(u2)
+disp('Thus, matrix P=')
+disp([u1 u2])
+disp('and matrix D=')
+disp([1 0;0 -1])
\ No newline at end of file |