Ch-3-Prob-3-New-박종우

1903 days ago by matrix

A=matrix([[1, 1, 2], [-2, 2, -3], [3, -1, 0]]) I=identity_matrix(3) A2=A^2 A3=A^3 print "A^3-5*A^2-A+5I=" print A3-(5)*A2-A+5*I 
       
A^3-5*A^2-A+5I=
[-21   2  10]
[ 22 -17   8]
[  2  -6 -33]
A^3-5*A^2-A+5I=
[-21   2  10]
[ 22 -17   8]
[  2  -6 -33]