Le 2012-03-10 à 16:31:00, Charles Henry a écrit :
How about an abstraction that uses <= against 2xepsilon*|input|? That would be a reliable automatic way to ignore single-bit rounding errors.
Don't you wish rounding errors would be at most single-bit.
But as you compose more operations together, error can accumulate and/or amplify.
This is why no-one uses a definition of == with a hardcoded epsilon in it, in any programming language that I ever heard of.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC