Ask Your Question

eigenvalues of matrices in AA

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

Jaume gravatar image

updated 2015-03-27 14:48:20 +0200

tmonteil gravatar image

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?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

tmonteil gravatar image

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

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


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

Seen: 264 times

Last updated: Mar 27 '15