aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2005-11-28 08:32:15 +0000
committerBruce Evans <bde@FreeBSD.org>2005-11-28 08:32:15 +0000
commit671448d87e5bda09a1c9d08256c3ed25eb4655b3 (patch)
tree92c20307ee2459e025f68cff4c30019a1fdbad82 /Makefile
parenta80b6c725e115a24c97e222ef1e4fd8bed4967c0 (diff)
downloadsrc-671448d87e5bda09a1c9d08256c3ed25eb4655b3.tar.gz
src-671448d87e5bda09a1c9d08256c3ed25eb4655b3.zip
Fixed about 50 million errors of infinity ulps and about 3 million errors
of between 1.0 and 1.8509 ulps for lgammaf(x) with x between -2**-21 and -2**-70. As usual, the cutoff for tiny args was not correctly translated to float precision. It was 2**-70 but 2**-21 works. Not as usual, having a too-small threshold was worse than a pessimization. It was just a pessimization for (positive) args between 2**-70 and 2**-21, but for the first ~50 million (negative) args below -2**-70, the general code overflowed and gave a result of infinity instead of correct (finite) results near 70*log(2). For the remaining ~361 million negative args above -2**21, the general code gave almost-acceptable errors (lgamma[f]() is not very accurate in general) but the pessimization was larger than for misclassified tiny positive args. Now the max error for lgammaf(x) with |x| < 2**-21 is 0.7885 ulps, and speed and accuracy are almost the same for positive and negative args in this range. The maximum error overall is still infinity ulps. A cutoff of 2**-70 is probably wastefully small for the double precision case. Smaller cutoffs can be used to reduce the max error to nearly 0.5 ulps for tiny args, but this is useless since the general algrorithm for nearly-tiny args is not nearly that accurate -- it has a max error of about 1 ulp.
Notes
Notes: svn path=/head/; revision=152878
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions