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/CH1/EX1.5.11/1_5_11.sce | |
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/CH1/EX1.5.11/1_5_11.sce')
-rwxr-xr-x | 26/CH1/EX1.5.11/1_5_11.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/26/CH1/EX1.5.11/1_5_11.sce b/26/CH1/EX1.5.11/1_5_11.sce new file mode 100755 index 000000000..5c8e0e0d2 --- /dev/null +++ b/26/CH1/EX1.5.11/1_5_11.sce @@ -0,0 +1,13 @@ +disp('the augmented matrix is')
+a=[1 -4 -2 0 3 -5 0;0 0 1 0 0 -1 0;0 0 0 0 -1 4 0;0 0 0 0 0 0 0]
+disp(a)
+disp('R1=R1-3*R3')
+a(1,:)=a(1,:)-3*a(3,:)
+disp(a)
+disp('R1=R1+2*R2')
+a(1,:)=a(1,:)+2*a(2,:)
+disp(a)
+disp('the free variables are:x2, x4 and x6')
+disp('the basic variables are:x1, x3 and x5')
+disp('the solution is:')
+disp('[4*x2-5*x6 x2 x6 x4 4*x6 x6]')
\ No newline at end of file |