From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 26/CH1/EX1.5.7/1_5_7.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 26/CH1/EX1.5.7/1_5_7.sce (limited to '26/CH1/EX1.5.7/1_5_7.sce') diff --git a/26/CH1/EX1.5.7/1_5_7.sce b/26/CH1/EX1.5.7/1_5_7.sce new file mode 100755 index 000000000..557147482 --- /dev/null +++ b/26/CH1/EX1.5.7/1_5_7.sce @@ -0,0 +1,12 @@ +disp('the augmented matrix is:') +a=[1 3 -3 7 0;0 1 -4 5 0] +disp(a) +disp('R1=R1-3*R2') +a(1,:)=a(1,:)-3*a(2,:) +disp(a) +disp('basic variables:x1 x2') +disp('free variables:x3 x4') +disp('x1=-9*x3+8*x4') +disp('x2=4*x3-5*x4') +disp('hence, solution is') +disp('[-9*x3+8*x4 4*x3-5*x4 x3 x4]') \ No newline at end of file -- cgit