Tool to evaluate the value of the error function noted erf() or its complementary erfc(); special functions used in probability, statistics or physics.

Error Function - dCode

Tag(s) : Functions

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!

A suggestion ? a feedback ? a bug ? an idea ? *Write to dCode*!

The error function (sometimes called *Gaussian error function*) is denoted $ \operatorname{erf} $ and is defined by the formula $$ \operatorname{erf}(x)= \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} \, \mathrm{d}t $$

The error function returns a result between -1 and 1.

__Example:__ $ \operatorname{erf}(0) = 0 $, $ \operatorname{erf}(-\infty) = -1 $, $ \operatorname{erf}(+\infty) = 1 $

The `erf` function is an odd function

The complementary error function is defined by $$ \operatorname{erfc}(x) = 1-\operatorname{erf}(x) $$

__Example:__ $ \operatorname{erf}(x) + \operatorname{erfc}(x) = 1 $

The inverse error function is defined by the inverse (reciprocal) function $$ \operatorname{erf}^{-1}(\operatorname{erf}(x)) = x $$

The expansion in integer series of 'erf ()' allow a fast computation (with approximations) by the formula: $$ \operatorname{erf}(x)= \frac{2}{\sqrt{\pi}} \sum_{n=0}^{\infty} (-1)^{n} \frac{x^{2n+1}}{n!(2n+1)} = \frac{2}{\sqrt{\pi}} \left( x - \frac{z^3}{3} + \frac{z^5}{10} - \frac{z^7}{42} + \frac{z^9}{216} + \cdots \right) $$

The image of a negative value $ -z $ is the opposite of the image of the positive value: $ \operatorname{erf}(-z) = -\operatorname{erf}(z) $

The derivative of the error function is $$ \frac{d}{dz} \operatorname{erf}(z) = \frac{2}{\sqrt{\pi}}e^{-z^2} $$

The integral of the error function is $$ \int \operatorname{erf}(x)\, dx = \frac{e^{-x^2}}{\sqrt{\pi}}+x \operatorname{erf}(x) + c $$

dCode retains ownership of the "Error Function" source code. Except explicit open source licence (indicated Creative Commons / free), the "Error Function" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "Error Function" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "Error Function" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!

Reminder : dCode is free to use.

The copy-paste of the page "Error Function" or any of its results, is allowed (even for commercial purposes) as long as you cite dCode!

Exporting results as a .csv or .txt file is free by clicking on the *export* icon

Cite as source (bibliography):

*Error Function* on dCode.fr [online website], retrieved on 2023-12-03,

error,function,erf,erfc,gauss

https://www.dcode.fr/error-function

© 2023 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.

Feedback