summaryrefslogtreecommitdiff
path: root/3293/CH5/EX5.8/Ex5_8.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3293/CH5/EX5.8/Ex5_8.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/CH5/EX5.8/Ex5_8.sce')
-rwxr-xr-x3293/CH5/EX5.8/Ex5_8.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3293/CH5/EX5.8/Ex5_8.sce b/3293/CH5/EX5.8/Ex5_8.sce
new file mode 100755
index 000000000..09f3ae417
--- /dev/null
+++ b/3293/CH5/EX5.8/Ex5_8.sce
@@ -0,0 +1,17 @@
+//page 161
+//Example 5.8
+clc;
+clear;
+close;
+A = [1 2;3 4];
+disp(A,'A = ');
+d = det(A);
+disp(d,'det A = ','Determinant of A is:');
+ad = (det(A) * eye(2,2)) / A;
+disp(ad,'adj A = ','Adjoint of A is:');
+disp('Thus, A is not invertible as a matrix over the ring of integers.');
+disp('But, A can be regarded as a matrix over field of rational numbers.');
+in = inv(A);
+//The A inverse matrix given in book has a wrong entry of 1/2. It should be -1/2.
+disp(in,'inv(A) = ','Then, A is invertible and Inverse of A is:');
+//end