summaryrefslogtreecommitdiff
path: root/75/CH9/EX9.9/ex_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '75/CH9/EX9.9/ex_9.sce')
-rwxr-xr-x75/CH9/EX9.9/ex_9.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/75/CH9/EX9.9/ex_9.sce b/75/CH9/EX9.9/ex_9.sce
new file mode 100755
index 000000000..92de3a6a6
--- /dev/null
+++ b/75/CH9/EX9.9/ex_9.sce
@@ -0,0 +1,13 @@
+ // PG (610)
+
+w = [1/3 2/3 2/3]'
+w1 = w(1,1)
+w2 = w(2,1)
+w3 = w(3,1)
+
+U = [1-2*abs(w1)^2 -2*w1*w2' -2*w1*w3';-2*w1'*w2 1-2*abs(w2)^2 -2*w2*w3';-2*w1'*w3 -2*w2'*w3 1-2*abs(w3)^2]
+U
+inv(U)
+// U = inv(U)------Hence, U is Hermitian
+U*U
+// U*U = I---------Hence, U is orthogonal