by ogogmad · 3y ago · 0 comments
Oh, absolutely. This actually shows that floats are (in some sense) more rigorous than more idealised mathematical approaches, because they explicitly deal with finite memory.
Oh, I remembered! There's also interval arithmetic, and variants of it like affine arithmetic. At least you know when you're losing precision. Why don't these get used more? These seem more ideal, somehow.
evaluate x-x to [-2, 2] (instead of [0, 0], and
evaluate x*x [-1, 1] instead of [0, 1].
Therefore the intervals become too conservative to be useful.