Hi,

I am confused about the following session.

sage: var('a b c d t')
(a, b, c, d, t)
sage: M=matrix(2,[a,b,c,d])
sage: M

[a b]
[c d]
sage: M.eigenvalues()
[]
sage: M.charpoly(t)
(a - t)*(d - t) - b*c
sage: M.charpoly(t).solve(t)
[t == (-sqrt(d^2 - 2*a*d + 4*b*c + a^2) + d + a)/2, t == (sqrt(d^2 -
2*a*d + 4*b*c + a^2) + d + a)/2]

Looking at the source code it appears that M.eigenvalues() should be
more-or-less equivalent to M.charpoly(t).solve(t), but that doesn't
seem to be the case.

Mladen
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to