First time here? Check out the FAQ!

Ask Your Question
1

eigenvalues of matrices in AA

asked 10 years ago

Jaume gravatar image

updated 2 years ago

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

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 10 years ago

tmonteil gravatar image

updated 10 years ago

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)]
Preview: (hide)
link

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: 10 years ago

Seen: 433 times

Last updated: Mar 27 '15