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 --- 3293/CH1/EX1.6/Ex1_6.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 3293/CH1/EX1.6/Ex1_6.sce (limited to '3293/CH1/EX1.6') diff --git a/3293/CH1/EX1.6/Ex1_6.sce b/3293/CH1/EX1.6/Ex1_6.sce new file mode 100755 index 000000000..e38438360 --- /dev/null +++ b/3293/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,23 @@ +//page 9 +//Example 1.6 +clear; +close; +clc; +a=[-1 %i;-%i 3;1 2]; +disp(a,'a = '); +disp('Applying row transformations:'); +disp('R1 = R1+R3 and R2 = R2 + i *R3'); +a(1,:) = a(1,:) +a(3,:); +a(2,:) = a(2,:) + %i * a(3,:); +disp(a,'a = '); +disp('R1 = R1 * (1/2+i)'); +a(1,:) = 1/(2 + %i) * a(1,:); +disp(a,'a = '); +disp('R2 = R2-R1*(3+2i) and R3 = R3 - 2 *R1'); +a(2,:) = round(a(2,:) - (3 + 2 * %i) * a(1,:)); +a(3,:) = round(a(3,:) - 2 * a(1,:)); +disp(a,'a = '); +disp('Thus the system of equations is:'); +disp('x1 + 2*x2 = 0','-i*x1 + 3*x2 = 0','-x1+i*x2 = 0'); +disp('It has only trivial solution x1 = x2 = 0'); +//end -- cgit