summaryrefslogtreecommitdiff
path: root/3293/CH7/EX7.7/Ex7_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3293/CH7/EX7.7/Ex7_7.sce
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 '3293/CH7/EX7.7/Ex7_7.sce')
-rwxr-xr-x3293/CH7/EX7.7/Ex7_7.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/3293/CH7/EX7.7/Ex7_7.sce b/3293/CH7/EX7.7/Ex7_7.sce
new file mode 100755
index 000000000..601099c55
--- /dev/null
+++ b/3293/CH7/EX7.7/Ex7_7.sce
@@ -0,0 +1,22 @@
+//page 247
+//Example 7.7
+clc;
+clear;
+close;
+disp('A = ');
+disp('2 0 0 0');
+disp('1 2 0 0');
+disp('0 0 2 0');
+disp('0 0 a 2');
+disp('Considering a = 1');
+A = [2 0 0 0;1 2 0 0;0 0 2 0;0 0 1 2];
+p = poly(A,"x");
+disp('Characteristic polynomial for A is:');
+disp(p,'p = ');
+disp('or');
+disp('(x-2)^4');
+disp('Minimal polynomial for A =');
+disp('(x-2)^2');
+disp('For a = 0 and a = 1, characteristic and minimal polynomial are same.');
+disp('But for a=0, the solution space of (A - 2I) has 3 dimension whereas for a = 1, it has 2 dimension. ')
+//end