From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 26/CH6/EX6.3.19/6_3_19.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 26/CH6/EX6.3.19/6_3_19.sce (limited to '26/CH6/EX6.3.19') 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 -- cgit