Symbolic calculs is not human one...

Your question is quiet interesting to see how the Sympy experts could help
you.
Le 8 oct. 2013 19:39, "Taylan Şengül" <[email protected]> a écrit :

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

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

Reply via email to