On Sep 28, 2:48 pm, flyingsquirrel <coskun.e...@yahoo.com> wrote:
> I have a symmetric matrix that I want to diagonalize, such as
>
> x   y   z
> y   0   xy
> z   xy xyz
>
> x, y, z being variables, and the base field is CC (complex numbers). I
> typed in the following:
>
> R.<x,y,z>=CC[]
> m=matrix(R,[[x,y,z],[y,0,x*y],[z,x*y,x*y*z]])
> m.eigenvalues()
>
> and I get an error message (NotImplementedError). How do I diagonalize
> this matrix?


sage: var('x y z')
(x, y, z)
sage: m=matrix([[x,y,z],[y,0,x*y],[z,x*y,x*y*z]])
sage: e=m.eigenvalues()

works but gives very long answer
(Compare Wolfram alpha which also gives long answer)
(v=m.eigenvectors() takes ~ 5min)

Andrzej Chrzeszczyk

-- 
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