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 <har...@free.fr> wrote:
> Dear all,
>
> I try to find the eigenvectors of a general 2x2 matrix using
>
> var('a,b,c,d');show(Matrix(2,2,[a,b,c,d]).eigenvalues());
> show(Matrix([[a,b],[c,d]]).eigenvectors_left())
>
> The eigenvalues are ok, but I get an error for the eigenvectors.
> What am I doing wrong here ?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to