A=matrix([[-1,3],[2,0]])
B=A*A
print A.eigenvectors_right()
[(2, [
(1, 1)
], 1), (-3, [
(1, -2/3)
], 1)]

print B.eigenvectors_right()
[(9, [
(1, -2/3)
], 1), (4, [
(1, 1)
], 1)]

#A has same EIGENVECTORS as A.
#When A has eigenvalues x & y,A^2 has eigenvalues x^2 & y^2

Strang-243-22-U (last edited 2010-12-17 04:56:26 by rupampy)