An accurate elementary mathematical library for the IEEE floating point standard

Gal Shmuel

ACM Transactions on Mathematical Software · 1991 · 82 citations · 6 references

DOIFull text

Open access

Concepts

TL;DR

The IBM Israel Scientific Center’s elementary mathematical library implements algorithms for IEEE binary floating‑point arithmetic. The study proposes using nonstandard tables to eliminate rounding errors that prevent last‑bit accuracy in elementary functions. By perturbing equally spaced points so that table values are close to exactly representable numbers, the method reduces representation error. The accurate tables method delivers high‑performance, correctly rounded results for nearly all argument values, achieving last‑bit accuracy without extended‑precision arithmetic.

Abstract

The algorithms used by the IBM Israel Scientific Center for the elementary mathematical library using the IEEE standard for binary floating point arithmetic are described. The algorithms are based on the “accurate tables method.” This methodology achieves high performance and produces very accurate results. It overcomes one of the main problems encountered in elementary mathematical functions computations: achieving last bit accuracy. The results obtained are correctly rounded for almost all arguement values. Our main idea in the accurate tables method is to use “nonstandard tables,” which are different from the natural tables of equally spaced points in which the rounding error prevents obtaining last bit accuracy. In order to achieve a small error we use the following idea: Perturb the original, equally spaced, points in such a way that the table value (or tables values in case we need several tables) will be very close to numbers which can be exactly represented by the computer (much closer than the usual double percision representation). Thus we were able to control the error introduced by the computer representation of real numbers and extended the accuracy without actually using extended precision arithmetic.

References

6