The functions erf and erfc computed with arbitrary precision and explicit error bounds - ENS de Lyon - École normale supérieure de Lyon Accéder directement au contenu
Article Dans Une Revue Information and Computation Année : 2012

The functions erf and erfc computed with arbitrary precision and explicit error bounds

Résumé

The error function erf is a special function. It is widely used in statistical computations for instance, where it is also known as the standard normal cumulative probability. The complementary error function is defined as erfc(x)=erf(x)-1. In this paper, the computation of erf(x) and erfc(x) in arbitrary precision is detailed: our algorithms take as input a target precision t' and deliver approximate values of erf(x) or erfc(x) with a relative error bounded by 2^(-t'). We study three different algorithms for evaluating erf and erfc. These algorithms are completely detailed. In particular, the determination of the order of truncation, the analysis of roundoff errors and the way of choosing the working precision are presented. The scheme used for implementing erf and erfc and the proofs are expressed in a general setting, so they can directly be reused for the implementation of other functions. We implemented the three algorithms and studied experimentally what is the best algorithm to use in function of the point x and the target precision t'.
Fichier principal
Vignette du fichier
RR2009-04.pdf (582.87 Ko) Télécharger le fichier
COPYING (34.32 Ko) Télécharger le fichier
COPYING.LESSER (7.47 Ko) Télécharger le fichier
README (1.62 Ko) Télécharger le fichier
erf1.c (5.01 Ko) Télécharger le fichier
erf2.c (5.41 Ko) Télécharger le fichier
erf3.c (5.9 Ko) Télécharger le fichier
erferfc.c (16.13 Ko) Télécharger le fichier
erferfc.h (4.39 Ko) Télécharger le fichier
erferfc_utils.c (2.54 Ko) Télécharger le fichier
erferfc_utils.h (2.53 Ko) Télécharger le fichier
example.c (859 B) Télécharger le fichier
tests/test1.c (3.83 Ko) Télécharger le fichier
tests/test2.c (3.83 Ko) Télécharger le fichier
tests/test3.c (3.9 Ko) Télécharger le fichier
tests/test4.c (4.57 Ko) Télécharger le fichier
tests/test5.c (4.58 Ko) Télécharger le fichier
tests/test6.c (6.53 Ko) Télécharger le fichier
tests/test7.c (6.56 Ko) Télécharger le fichier
tune/boundaryExample.dat (1.43 Mo) Télécharger le fichier
tune/boundaryExample.png (9.55 Ko) Télécharger le fichier
tune/timer.h (1.99 Ko) Télécharger le fichier
tune/tune.c (8.48 Ko) Télécharger le fichier
tune/tune.h (490 B) Télécharger le fichier
tune/tune.p (354 B) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Format : Autre
Loading...

Dates et versions

ensl-00356709 , version 1 (28-01-2009)
ensl-00356709 , version 2 (14-05-2009)
ensl-00356709 , version 3 (27-05-2010)

Identifiants

Citer

Sylvain Chevillard. The functions erf and erfc computed with arbitrary precision and explicit error bounds. Information and Computation, 2012, 216, pp.72 -- 95. ⟨10.1016/j.ic.2011.09.001⟩. ⟨ensl-00356709v3⟩
1911 Consultations
10589 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More