LA+Chapter8+Ex+4(new)-서승완

2023 days ago by math2013

# (2) A=matrix([[3,4], [0, 3]]) print A.eigenvalues() print E=identity_matrix(2) print (3*E-A).echelon_form() print # (3) B=matrix([[2,1,1], [1,2,1], [1,1,2]]) print B.eigenvalues() print E=identity_matrix(3) print (4*E-B).echelon_form() print print (E-B).echelon_form() print x1=vector([1,1,1]) x2=vector([-1,1,0]) x3=vector([-1,0,1]) P=column_matrix([x1,x2,x3]) print P print print P.det() print print P^-1*B*P 
       
[3, 3]

[0 4]
[0 0]

[4, 1, 1]

[ 1  1 -2]
[ 0  3 -3]
[ 0  0  0]

[1 1 1]
[0 0 0]
[0 0 0]

[ 1 -1 -1]
[ 1  1  0]
[ 1  0  1]

3

[4 0 0]
[0 1 0]
[0 0 1]
[3, 3]

[0 4]
[0 0]

[4, 1, 1]

[ 1  1 -2]
[ 0  3 -3]
[ 0  0  0]

[1 1 1]
[0 0 0]
[0 0 0]

[ 1 -1 -1]
[ 1  1  0]
[ 1  0  1]

3

[4 0 0]
[0 1 0]
[0 0 1]