[Numpy-discussion] [Feature Suggestion]More comparison functions for floating point numbers
Robert Kern
robert.kern at gmail.com
Mon Oct 19 17:04:45 EDT 2015
On Mon, Oct 19, 2015 at 9:51 PM, cy18 <thecy18 at gmail.com> wrote:
>
> It would be useful when we need to subtracting a bit before comparing by
greater or less. By subtracting a bit, we only have an absolute error
tolerance and with the new functions, we can have both absolute and
relative error tolerance. This is how isclose(a, b) better than
abs(a-b)<=atol.
You just adjust the value by whichever tolerance is greatest in magnitude.
--
Robert Kern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20151019/8686ed1d/attachment.html>
More information about the NumPy-Discussion
mailing list