Ask Your Question

eigenvalues of matrices in AA

asked 2015-03-27 04:41:04 -0500

Jaume gravatar image

updated 2015-03-27 08:48:20 -0500

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 08:22:54 -0500

tmonteil gravatar image

updated 2015-03-27 10:38:38 -0500

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 04:41:04 -0500

Seen: 71 times

Last updated: Mar 27 '15