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/CH2/EX2.13 | |
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/CH2/EX2.13')
-rwxr-xr-x | 3293/CH2/EX2.13/Ex2_13.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/3293/CH2/EX2.13/Ex2_13.sce b/3293/CH2/EX2.13/Ex2_13.sce new file mode 100755 index 000000000..3c6f96e6b --- /dev/null +++ b/3293/CH2/EX2.13/Ex2_13.sce @@ -0,0 +1,22 @@ +//page 41
+//Example 2.13
+clear;
+clc;
+close;
+disp('S is the subset of F^n consisting of n vectors.');
+n = round(rand() *10 + 1);
+disp(n,'n = ');
+I = eye(n,n);
+for i = 0 : n-1
+ e = I(i+1,:);
+ printf('e%d = ',i+1);
+ disp(e);
+end
+disp('x1,x2,x3...xn are the scalars in F');
+disp('Putting a = x1*e1 + x2*e2 + x3*e3 + .... + xn*en');
+disp('So, a = (x1,x2,x3,...,xn)');
+disp('Therefore, e1,e2..,en span F^n');
+disp('a = 0 if x1 = x2 = x3 = .. = xn = 0');
+disp('So,e1,e2,e3,..,en are linearly independent.');
+disp('The set S = {e1,e2,..,en} is called standard basis of F^n');
+//end
|