C Community's Cavalier Attitude On Software Reliability

David Wolverton daw at cbnewsh.ATT.COM
Wed Feb 28 07:53:02 AEST 1990


> In article <8147 at hubcap.clemson.edu>, wtwolfe at hubcap.clemson.edu (Bill Wolfe) writes:
> >    SIN(3M)  The value of 'tan' for arguments greater than about 2**31
> >             is garbage.

Seeing this reminded me to mention to the net that math libraries need
not be bad.  While it is probably true that even some recent UNIXes
contain some bad math functions, they need not.  Anyone who is responsible
for a C implementation should do at least as well as the 4.3 BSD libm,
which is very careful about things like loss of accuracy.
The math library in SVR4 uses the 4.3 libm, plus some additional
accuracy improvements (see the paper in the winter Usenix proceedings)
from various places.

Dave Wolverton
daw at attunix.att.com



More information about the Comp.lang.c mailing list