Hi all,
I am quite new to sympy.
When I type the following
a = symbols('a')
m = Matrix( [ [a, 0], [0, 1] ] )
m.eigenvals()
I expect the answer to
{a: 1, 1: 1}
But I get
{a/2 + sqrt((a - 1)**2)/2 + 1/2: 1, a/2 - sqrt((a - 1)**2)/2 + 1/2: 1}
I think first the characteristic polynomial is computed and then roots are
found. This produces the mess. Wouldn't it be better to try to factor the
characteristic polynomial first and then find roots?
Taylan
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.