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 /26/CH6/EX6.3.19 | |
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 '26/CH6/EX6.3.19')
-rwxr-xr-x | 26/CH6/EX6.3.19/6_3_19.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/26/CH6/EX6.3.19/6_3_19.sce b/26/CH6/EX6.3.19/6_3_19.sce new file mode 100755 index 000000000..cb1d97266 --- /dev/null +++ b/26/CH6/EX6.3.19/6_3_19.sce @@ -0,0 +1,12 @@ +disp('By orthogonal decomposition theorem,')
+disp('u3 is the sum of a vector in W=span{u1 u2} and a vector v orthogonal to W')
+disp('To find v, given u1 and u2')
+u1=[1;1;-2]
+u2=[5;-1;2]
+disp(u2,'u2=',u1,'u1=')
+disp('Projection of u3 on W')
+disp('= (-1/3)*u1+(1/15)*u2')
+disp((-1/3)*u1+(1/15)*u2,'=')
+disp('v= u3-(projection of u3 on W)')
+disp((-1/3)*u1+(1/15)*u2,'-',[0;0;1],'=')
+disp([0;0;1]-((-1/3)*u1+(1/15)*u2),'=')
\ No newline at end of file |