[Cfp-interest] AI about exp10m1 range error

Fred J. Tydeman tydeman at tybor.com
Tue Feb 20 08:20:35 PST 2018


On Tue, 6 Feb 2018 10:20:45 -0800 Jim Thomas wrote:
>
>However, the C definition of underflow, in the specification of range errors, is: "The result underflows if the magnitude of the mathematical result is so small that the mathematical result cannot be represented, without extraordinary roundoff error, in an object of the specified type." For exp10m1(tiny) the result is accurate to the full precision of the type, so there is no extraordinary roundoff error (which is not the case for expm1). So I think our current specification is ok, albeit subtle.
>

I disagree.  To a first approximation, exp10m1(x) is x*ln(10) = 2.3*x
So, for subnormal numbers, it is not accurate to the full precision.


---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the Cfp-interest mailing list