summaryrefslogtreecommitdiff
path: root/26/CH1/EX1.5.11/1_5_11.sce
diff options
context:
space:
mode:
Diffstat (limited to '26/CH1/EX1.5.11/1_5_11.sce')
-rwxr-xr-x26/CH1/EX1.5.11/1_5_11.sce13
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