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.10/Ex1_10.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 '3293/CH1/EX1.10/Ex1_10.sce')
-rwxr-xr-x | 3293/CH1/EX1.10/Ex1_10.sce | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/3293/CH1/EX1.10/Ex1_10.sce b/3293/CH1/EX1.10/Ex1_10.sce new file mode 100755 index 000000000..9185c089b --- /dev/null +++ b/3293/CH1/EX1.10/Ex1_10.sce @@ -0,0 +1,54 @@ +//page 17
+//Example 1.10
+clear;
+close;
+clc;
+//Part a
+a = [1 0;-3 1];
+b = [5 -1 2;15 4 8];
+disp(a,'a=');
+disp(b,'b=');
+disp(a*b,'ab = ');
+disp('-----------------------------------------------------------------');
+//Part b
+a = [1 0;-2 3;5 4;0 1];
+b = [0 6 1;3 8 -2];
+disp(a,'a=');
+disp(b,'b=');
+disp(a*b,'ab = ');
+disp('-----------------------------------------------------------------');
+//Part c
+a = [2 1;5 4];
+b = [1;6];
+disp(a,'a=');
+disp(b,'b=');
+disp(a*b,'ab = ');
+disp('-----------------------------------------------------------------');
+//Part d
+a = [-1;3];
+b = [2 4];
+disp(a,'a=');
+disp(b,'b=');
+disp(a*b,'ab = ');
+disp('-----------------------------------------------------------------');
+//Part e
+a = [2 4];
+b = [-1;3];
+disp(a,'a=');
+disp(b,'b=');
+disp(a*b,'ab = ');
+disp('-----------------------------------------------------------------');
+//Part f
+a = [0 1 0;0 0 0;0 0 0];
+b = [1 -5 2;2 3 4;9 -1 3];
+disp(a,'a=');
+disp(b,'b=');
+disp(a*b,'ab = ');
+disp('-----------------------------------------------------------------');
+//Part g
+a = [1 -5 2;2 3 4;9 -1 3];
+b = [0 1 0;0 0 0;0 0 0];
+disp(a,'a=');
+disp(b,'b=');
+disp(a*b,'ab = ');
+//end
|