RootOf.evalf() hanging is a bug. It apparently uses a combination of the root isolation algorithm and mpmath.findroot to find the root, giving findroot the center of the interval each time, and isolating it further if that doesn't work. But apparently there is a bug in one of those two procedures, so it just goes in forever. Open an issue for it if you haven't already.
Aaron Meurer On Jun 16, 2012, at 7:14 AM, "[email protected]" <[email protected]> wrote: > In [22]: f = Poly(x**4 + 3.0*sqrt(2.0)*x**3 - (78.0 + > 24.0*sqrt(3.0))*x**2 + 144.0*(2*sqrt(3.0) + 9.0)) > > In [23]: nroots(f) > Out[23]: [-12.7530479110482, -3.85012393732929, 4.89897948556636, > 7.46155167569183] > > In [25]: RootOf(f,0).evalf() > # It hangs > > reported as http://code.google.com/p/sympy/issues/detail?id=3294 > > However I hope that I will be able to get comments about this here on > the mailing list. > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
