Metraipolis › archive › dc_7a6f10d5654e
Gal's accurate tables — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Gal%27s_accurate_tables
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-07T11:27:37.364Z
- SHA-256 of the archived text
949f00dc618d8f05e9d1812d26f82094ad90175cfe0b2dfd695b439299fb4fed- Stable URL of this page
https://metraipolis.com/documento/dc_7a6f10d5654e
How to cite
Gal's accurate tables — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Gal%27s_accurate_tables (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_7a6f10d5654e (Metraipolis archive dc_7a6f10d5654e, sha256 949f00dc618d8f05e9d1812d26f82094ad90175cfe0b2dfd695b439299fb4fed)
BibTeX
@misc{dc7a6f10d5654e,
title = {Gal's accurate tables — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Gal%27s_accurate_tables},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_7a6f10d5654e; sha256 949f00dc618d8f05e9d1812d26f82094ad90175cfe0b2dfd695b439299fb4fed},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Gal%27s_accurate_tables. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Gal's accurate tables is a method devised by Shmuel Gal to provide accurate values of special functions using a lookup table and interpolation. It is a fast and efficient method for generating values of functions like the exponential or the trigonometric functions to within last-bit accuracy for almost all argument values without using extended precision arithmetic. The main idea in Gal's accurate tables is a different tabulation for the special function being computed. Commonly, the range is divided into several subranges, each with precomputed values and correction formulae. To compute the function, look up the closest point and compute a correction as a function of the distance. Gal's idea is to not precompute equally spaced values, but rather to perturb the points x so that both x and f(x) are very nearly exactly representable in the chosen numeric format. By searching approximately 1000 values on either side of the desired value x, a value can be found such that f(x) can be represented with less than ±1/2000 bit of rounding error. If the correction is also computed to ±1/2000 bit of accuracy (which does not require extra floating-point precision as long as the correction is less than 1/2000 the magnitude of the stored value f(x), and the computed correction is more than ±1/1000 of a bit away from exactly half a bit (the difficult rounding case), then it is known whether the exact function value should be rounded up or down. The technique provides an efficient way to compute the function value to within ±1/1000 least-significant bit, i.e. 10 extra bits of precision. If this approximation is more than ±1/1000 of a bit away from exactly midway between two representable values (which happens 99.8% of the time), then the correctly rounded result is clear. Combined with an extended-precision fallback algorithm, this can compute the correctly rounded result in very reasonable average time. In 2/1000 (0.2%) of the time, such a higher-precision evaluation is required to resolve the rounding uncertainty, but this is infrequent enough that it has little effect on the average calculation time. The problem of generating function values which are accurate to the last bit is known as the table-maker's dilemma. Tema degli esploratori: matematica e informatica teorica (deposito sistematico; categoria «Numerical analysis»). Fonte: Wikipedia in inglese, voce «Gal's accurate tables» — https://en.wikipedia.org/wiki/Gal%27s_accurate_tables Wikidata Q5517721 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q5517721 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Gal%27s_accurate_tables?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1032637436, consultata il 2026-10-07T11:16:51.765Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 51c83ab028d91fb45871dec37944d212dc58c502bf8a328be99d5790a1793556