[Python-ideas] math.nextafter

Juraj Sukop juraj.sukop at gmail.com
Fri Feb 24 04:40:13 EST 2017

On Fri, Feb 24, 2017 at 5:01 AM, Chris Barker <chris.barker at noaa.gov> wrote:

> cause if your computation was that perfect, why not just check for zero?
A polynomial root may simply be not representable in double precision
floating-point format. Per the example I posted above, the best one can
hope for in such situation is to find (x, nextafter(x, float('inf')))
interval which has opposite function value signs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170224/523ca00f/attachment.html>

More information about the Python-ideas mailing list