Computing elementary functions using multi-prime argument reduction - Inria - Institut national de recherche en sciences et technologies du numérique
Pré-Publication, Document De Travail Année : 2022

Computing elementary functions using multi-prime argument reduction

Résumé

We describe an algorithm for arbitrary-precision computation of the elementary functions (exp, log, sin, atan, etc.) which, after a cheap precomputation, gives roughly a factor-two speedup over previous state-of-the-art algorithms at precision from a few thousand bits up to millions of bits. Following an idea of Schönhage, we perform argument reduction using Diophantine combinations of logarithms of primes; our contribution is to use a large set of primes instead of a single pair, aided by a fast algorithm to solve the associated integer relation problem. We also list new, optimized Machin-like formulas for the necessary logarithm and arctangent precomputations.
Fichier principal
Vignette du fichier
eleprime.pdf (283.42 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03714660 , version 1 (05-07-2022)

Identifiants

Citer

Fredrik Johansson. Computing elementary functions using multi-prime argument reduction. 2022. ⟨hal-03714660⟩
273 Consultations
148 Téléchargements

Altmetric

Partager

More