On Fri, Feb 24, 2017 at 5:01 AM, Chris Barker <chris.bar...@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.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to