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 /3293/CH1/EX1.6 | |
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 '3293/CH1/EX1.6')
-rwxr-xr-x | 3293/CH1/EX1.6/Ex1_6.sce | 23 |
1 files changed, 23 insertions, 0 deletions
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
|