Ask Your Question
1

eigenvalues of matrices in AA

asked 2015-03-27 10:41:04 +0100

Jaume gravatar image

updated 2023-01-09 23:59:36 +0100

tmonteil gravatar image
M=matrix(AA,[[0,-1],[1,0]])
M.eigenvectors_right()

raises an error "eigenvectors are not implemented for matrices with eigenvalues that are not in the fraction field of the base ring or in QQbar" which is just wrong because the eigenvalues of M are certainly in QQbar.

Can someone please explain how to avoid this problem?

Thanks,

Jaume

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-27 14:22:54 +0100

tmonteil gravatar image

updated 2015-03-27 16:38:38 +0100

Thanks for reporting, this is now trac ticket 18071 .There seems that eigenvectors_right() is not implemented for the real algebraic field AA. The workaround is to define your matrix in QQbar:

sage: M = M.change_ring(QQbar)
sage: M.eigenvectors_right()
[(1*I, [
  (1, -1*I)
  ], 1), (-1*I, [
  (1, 1*I)
  ], 1)]

It also works in ZZ:

sage: M = M.change_ring(ZZ)
sage: M.eigenvectors_right()
[(-1*I, [(1, 1*I)], 1), (1*I, [(1, -1*I)], 1)]
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-27 10:41:04 +0100

Seen: 405 times

Last updated: Mar 27 '15