summaryrefslogtreecommitdiff
path: root/26/CH3/EX3.1.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /26/CH3/EX3.1.13
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 '26/CH3/EX3.1.13')
-rwxr-xr-x26/CH3/EX3.1.13/3_1_13.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/26/CH3/EX3.1.13/3_1_13.sce b/26/CH3/EX3.1.13/3_1_13.sce
new file mode 100755
index 000000000..13e9d1d84
--- /dev/null
+++ b/26/CH3/EX3.1.13/3_1_13.sce
@@ -0,0 +1,18 @@
+disp('the given matrix is:')
+A=[4 0 -7 3 -5;0 0 2 0 0;7 3 -6 4 -8;5 0 5 2 -3;0 0 9 -1 2]
+disp(A,'A=')
+P=A
+disp('since row 2 has maximum zeros, using row 2 for cofactor expression')
+A(2,:)=[]
+A(:,3)=[]
+disp('deleting second row and third column from A, we get')
+disp(A)
+disp(A,'det','det(A)=-2 X')
+disp('for the 4X4 matrix obtained, using column 2 for cofactor exansion')
+disp('deleting second column and row from the 4X4 matrix')
+A(2,:)=[]
+A(:,2)=[]
+disp(A)
+disp(A,'det','det(A)=-2 X 3 X')
+disp('-6 X [4 X (4-3)-5 X (6-5)]','=')
+disp(-6*det(A),'=') \ No newline at end of file