summaryrefslogtreecommitdiff
path: root/3293/CH2/EX2.8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3293/CH2/EX2.8
downloadScilab-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/CH2/EX2.8')
-rwxr-xr-x3293/CH2/EX2.8/Ex2_8.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3293/CH2/EX2.8/Ex2_8.sce b/3293/CH2/EX2.8/Ex2_8.sce
new file mode 100755
index 000000000..687eb1cc5
--- /dev/null
+++ b/3293/CH2/EX2.8/Ex2_8.sce
@@ -0,0 +1,26 @@
+//page 37
+//Example 2.8
+clear;
+clc;
+close;
+a1 = [1 2 0 3 0];
+a2 =[0 0 1 4 0];
+a3 = [0 0 0 0 1];
+disp(a1,'a1 = ');
+disp(a2,'a2 = ');
+disp(a3,'a3 = ');
+disp('By theorem 3, vector a is in subspace W of F^5 spanned by a1, a2, a3');
+disp('if and only if there exist scalars c1, c2, c3 such that');
+disp('a= c1a1 + c2a2 + c3a3');
+disp('So, a = (c1,2*c1,c2,3c1+4c2,c3)');
+c1 = -3;
+c2 = 1;
+c3 = 2;
+a = c1*a1 + c2*a2 + c3*a3;
+disp(c1,'c1 = ');
+disp(c2,'c2 = ');
+disp(c3,'c3 = ');
+disp(a,'Therefore, a = ');
+disp('This shows, a is in W');
+disp('And (2,4,6,7,8) is not in W as there is no value of c1 c2 c3 that satisfies the equation');
+//end