Re:Inventor Claims to Have Solved Floating Point Error Problem
by whyever on Thursday January 18, 2018 @12:35PM
(#16179148)
You could always just return nan in that case, like for normal arithmetic.
[ Parent
| on HN ]
Re:Inventor Claims to Have Solved Floating Point Error Problem
by danbruc on Thursday January 18, 2018 @12:47PM
(#16179354)
In which case you go from a potentially imprecise result to no result at all which would arguably make things worse, especially if you happen to know that x is non-zero and division by zero is not an issue. The problem is that using a single interval is not generally good enough to track error bounds for arbitrary calculations while avoiding to turn everything into the useless (-∞,+∞). The common solution is to use multi-interval arithmetic but having to deal with a data structure of variable length is really painful for hardware implementations.