# LA Ch8 Ex23 Solved By 정양헌 Revised by 이반석 Finalized by 정진규+이나을

## 2260 days ago by math2013

A = matrix(2,2,[1/sqrt(2),1/sqrt(2),1/sqrt(2), -1/sqrt(2)]) print "Matrix A : " print A print A_h = A.conjugate_transpose() print "Matrix A^* : " print A_h print print "Matrix A*A^* : " print A*A_h print
 Matrix A : [ 1/2*sqrt(2) 1/2*sqrt(2)] [ 1/2*sqrt(2) -1/2*sqrt(2)] Matrix A^* : [ 1/2*sqrt(2) 1/2*sqrt(2)] [ 1/2*sqrt(2) -1/2*sqrt(2)] Matrix A*A^* : [1 0] [0 1] Matrix A : [ 1/2*sqrt(2) 1/2*sqrt(2)] [ 1/2*sqrt(2) -1/2*sqrt(2)] Matrix A^* : [ 1/2*sqrt(2) 1/2*sqrt(2)] [ 1/2*sqrt(2) -1/2*sqrt(2)] Matrix A*A^* : [1 0] [0 1]
B = matrix(3,3,[0,i,1,i,0,2+i,-1,-2+i,0]) print "Matrix B : " print B print B_h = B.conjugate_transpose() print "Matrix B^* : " print B_h print print "Matrix B*B^* : " print B*B_h
 Matrix B : [ 0 I 1] [ I 0 I + 2] [ -1 I - 2 0] Matrix B^* : [ 0 -I -1] [ -I 0 -I - 2] [ 1 -I + 2 0] Matrix B*B^* : [ 2 -I + 2 -2*I + 1] [ I + 2 6 -I] [ 2*I + 1 I 6] Matrix B : [ 0 I 1] [ I 0 I + 2] [ -1 I - 2 0] Matrix B^* : [ 0 -I -1] [ -I 0 -I - 2] [ 1 -I + 2 0] Matrix B*B^* : [ 2 -I + 2 -2*I + 1] [ I + 2 6 -I] [ 2*I + 1 I 6]