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 /1332/CH9/EX9.6 | |
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 '1332/CH9/EX9.6')
-rwxr-xr-x | 1332/CH9/EX9.6/9_6.pdf | bin | 0 -> 6611 bytes | |||
-rwxr-xr-x | 1332/CH9/EX9.6/9_6.sce | 24 |
2 files changed, 24 insertions, 0 deletions
diff --git a/1332/CH9/EX9.6/9_6.pdf b/1332/CH9/EX9.6/9_6.pdf Binary files differnew file mode 100755 index 000000000..36a5c4c29 --- /dev/null +++ b/1332/CH9/EX9.6/9_6.pdf diff --git a/1332/CH9/EX9.6/9_6.sce b/1332/CH9/EX9.6/9_6.sce new file mode 100755 index 000000000..6c9009740 --- /dev/null +++ b/1332/CH9/EX9.6/9_6.sce @@ -0,0 +1,24 @@ +//Example 9.6
+//House Holder Transformation
+//Page no. 300
+clc;clear;close;
+
+A=[4,2,1;2,5,-2;1,-2,7]
+disp(A,'A=')
+k=0;
+for j=2:3
+ k=k+A(j,1)^2;
+end
+a=A(2,1)*abs(1/A(2,1))*sqrt(k);
+disp(a,'alpha=')
+U=[0;a+A(2,1);A(3,1)];
+disp(U,'U=')
+U1=U'*U;
+disp(U1,'UT*U=')
+U2=U*U';
+disp(U2,'U*UT=')
+P=eye(3,3)-(2*U2)/U1;
+disp(P,'P=');
+B=P*A*P;
+disp(B,'B=');
+printf('\n\n\nThere are computation error in the answers given by the book in this example\n\n(a22 value error in U*UT)')
\ No newline at end of file |