Skip to Main content Skip to Navigation
Preprints, Working Papers, ...

The functions erf and erfc computed with arbitrary precision

Abstract : 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. 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'.
Document type :
Preprints, Working Papers, ...
Complete list of metadata

https://hal-ens-lyon.archives-ouvertes.fr/ensl-00356709
Contributor : Sylvain Chevillard Connect in order to contact the contributor
Submitted on : Wednesday, January 28, 2009 - 12:08:40 PM
Last modification on : Thursday, September 23, 2021 - 10:44:02 PM
Long-term archiving on: : Tuesday, June 8, 2010 - 7:40:49 PM

File

RR2009-04.lip.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : ensl-00356709, version 1

Collections

Citation

Sylvain Chevillard. The functions erf and erfc computed with arbitrary precision. 2009. ⟨ensl-00356709v1⟩

Share

Metrics

Record views

49

Files downloads

132