albe…@spenarnc.xs4all.nl writes:
>A fp number represents a rational range, it nominal value plus or minus >half an ulp.
What makes you think that the result of 3 s>f or s" 3e" >float drop represents a range? This value can be represented exactly as FP value, there is no rounding happening in this conversion. And why should it represent the range 2.9999999999999997779553950749686919152736663818359375e to 3.0000000000000002220446049250313080847263336181640625e in particular? Further, when we perform 6 s>f 3 s>f f- why should the results of the individual conversions (none of which performs rounding) represent ranges? Why should the result of the subtraction (which does not perform any rounding, either, and does not set the "inexact" flag in the FPU) represent a range. But even if we assume that the results of the conversions are ranges, why should the result of the subtraction be the interval above, instead of the interval that interval arithmetic would give, which is a range that is 3 times bigger in this case (2 times, because the interval you claim for 6 is twice as big as that for 3, and 1 time due to the interval of 3). As mentioned, thinking about FP numbers as "imprecise" or intervals etc. leads you down the path to wrong conclusions. A better way to think about them is: Each FP number has an exact value, but in some cases conversions to FP and FP operations round, because there is no FP value for the exact result; this rounding leads to errors. The size of this error is the subject of numerical analysis. - anton