Comment #8 on issue 3294 by [email protected]: RootOf.evalf hangs when nroots returns instantaneously
http://code.google.com/p/sympy/issues/detail?id=3294

I guess not.

In [4]: In [25]: RootOf(f,0).evalf()
^C---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-4-187536984ed8> in <module>()
----> 1 RootOf(f,0).evalf()

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/evalf.py in evalf(self, n, subs, maxn, chop, strict, quad, verbose)
   1280             options['quad'] = quad
   1281         try:
-> 1282             result = evalf(self, prec + 4, options)
   1283         except NotImplementedError:
   1284             # Fall back to the ordinary evalf

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/evalf.py in evalf(x, prec, options)
   1186             if 'subs' in options:
   1187                 x = x.subs(evalf_subs(prec, options['subs']))
-> 1188             re, im = x._eval_evalf(prec).as_real_imag()
   1189             if re.has(re_) or im.has(im_):
   1190                 raise NotImplementedError

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/polys/rootoftools.py in _eval_evalf(self, prec)
    418             while True:
    419                 if self.is_real:
--> 420                     x0 = mpf(str(interval.center))
    421                 else:
    422                     x0 = mpc(*map(str, interval.center))

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/polys/rootisolation.py in center(self)
   1702     def center(self):
   1703         """Return the center of the real isolating interval. """
-> 1704         return (self.a + self.b)/2
   1705
   1706     def as_tuple(self):

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/polys/domains/pythonrational.py in __div__(self, other)
    171             return NotImplemented
    172
--> 173         return self.__class__(p, q)
    174
    175     __truediv__ = __div__

/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/polys/domains/pythonrational.py in __init__(self, p, q)
     58
     59             while y:
---> 60                 x, y = y, x % y
     61
     62             if x != 1:

KeyboardInterrupt:

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to