[sage-support] Re: eigenvectors of a 2x2 matrix

2010-02-28 Thread harven
On Feb 28, 5:44 am, Marshall Hampton hampto...@gmail.com wrote: I'm not sure this is the best answer, but you could do: A = matrix(SR,[[a,b],[c,d]]) v1,v2 = A.eigenvalues() show((A-v1).left_kernel().basis()[0]) show((A-v2).left_kernel().basis()[0]) Perhaps part of the issue is that these

[sage-support] Re: eigenvectors of a 2x2 matrix

2010-02-27 Thread Marshall Hampton
I'm not sure this is the best answer, but you could do: A = matrix(SR,[[a,b],[c,d]]) v1,v2 = A.eigenvalues() show((A-v1).left_kernel().basis()[0]) show((A-v2).left_kernel().basis()[0]) Perhaps part of the issue is that these do not have to be distinct. -M. Hampton On Feb 27, 5:39 pm, harven