summaryrefslogtreecommitdiff
path: root/1332/CH9/EX9.6
diff options
context:
space:
mode:
Diffstat (limited to '1332/CH9/EX9.6')
-rwxr-xr-x1332/CH9/EX9.6/9_6.pdfbin0 -> 6611 bytes
-rwxr-xr-x1332/CH9/EX9.6/9_6.sce24
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
new file mode 100755
index 000000000..36a5c4c29
--- /dev/null
+++ b/1332/CH9/EX9.6/9_6.pdf
Binary files differ
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