3 ms·
There was a very good article explaining this using MATLAB, but I can't find it right now. This one is pretty close and explains the concepts of overflow, und
by hcrisp 10y ago
There was a very good article explaining this using MATLAB, but I can't find it right now. This one is pretty close and explains the concepts of overflow, underflow, etc. The diagrams about "eps" are pretty good, even if your language of choice is Python, C/C++, etc.
http://blogs.mathworks.com/cleve/2014/07/07/floating-point-numbers/ http://blogs.mathworks.com/cleve/2014/07/07/floating-point-n...
- ubernostrum 10y agoPython has math.isclose() in the standard library, with configurable tolerances: https://docs.python.org/3/library/math.html#math.isclose https://docs.python.org/3/library/math.html#math.isclose