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 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 online 'Error Function' tool source code. Except explicit open source licence (indicated CC / Creative Commons / free), any 'Error Function' algorithm, applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any 'Error Function' function (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and no data download, script, copy-paste, or API access for 'Error Function' will be for free, same for offline use on PC, tablet, iPhone or Android ! dCode is free and online.

Please, check our dCode Discord community for help requests!

NB: for encrypted messages, test our automatic cipher identifier!

error,function,erf,erfc,gauss

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

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

Feedback

▲
Thanks to your feedback and relevant comments, dCode has developed the best 'Error Function' tool, so feel free to write! Thank you!