summaryrefslogtreecommitdiff
path: root/243/CH14/EX14.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /243/CH14/EX14.3
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '243/CH14/EX14.3')
-rwxr-xr-x243/CH14/EX14.3/14_03.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/243/CH14/EX14.3/14_03.sce b/243/CH14/EX14.3/14_03.sce
new file mode 100755
index 000000000..020ed5ad9
--- /dev/null
+++ b/243/CH14/EX14.3/14_03.sce
@@ -0,0 +1,16 @@
+//Example No. 14_03
+//Eigen Vectors
+//Pg No. 473
+clear ; close ; clc ;
+
+A = [8 -4 ; 2 2 ] ;
+lamd = poly(0,'lamd')
+p = det(A - lamd*eye())
+root = roots(p)
+mprintf('\n The roots are \n lamda1 = %f \n lamda2 = %f \n ',root(1),root(2))
+A1 = A - root(1)*eye()
+X1 = [-1*A1(1,2)/A1(1,1) ; 1]
+disp(X1,'X1 = ')
+A2 = A - root(2)*eye()
+X2 = [-1*A2(1,2)/A2(1,1) ; 1]
+disp(X2,'X2 = ') \ No newline at end of file