In mathematics, the error function (also called the Gauss error function) is a non-elementary function which occurs in probability, statistics and partial differential equations. Mathematics is the body of Knowledge and Academic discipline that studies such concepts as Quantity, Structure, Space and This article discusses the concept of elementary functions in differential algebra Probability is the likelihood or chance that something is the case or will happen Statistics is a mathematical science pertaining to the collection analysis interpretation or explanation and presentation of Data. In Mathematics, partial differential equations ( PDE) are a type of Differential equation, i It is defined as:

The complementary error function, denoted erfc, is defined in terms of the error function:

The complex error function, denoted w(x), (also known as the Faddeeva function) is also defined in terms of the error function:

Contents |
The error function is odd:

Also, for any complex number x one has

where x * is the complex conjugate of x. In Mathematics, even functions and odd functions are functions which satisfy particular Symmetry relations with respect to taking Additive Complex plane In Mathematics, the complex numbers are an extension of the Real numbers obtained by adjoining an Imaginary unit, denoted In Mathematics, the complex conjugate of a Complex number is given by changing the sign of the Imaginary part.
The integral cannot be evaluated in closed form in terms of elementary functions, but by expanding the integrand in a Taylor series, one obtains the Taylor series for the error function as follows:

which holds for every real number x, and also throughout the complex plane. This article discusses the concept of elementary functions in differential algebra The European Space Agency 's INTErnational Gamma-Ray Astrophysics Laboratory ( INTEGRAL) is detecting some of the most energetic radiation that comes from space In Mathematics, the Taylor series is a representation of a function as an infinite sum of terms calculated from the values of its Derivatives In Mathematics, the real numbers may be described informally in several different ways In Mathematics, the complex plane is a geometric representation of the Complex numbers established by the real axis and the orthogonal imaginary axis This result arises from the Taylor series expansion of
which is
and is then integrated term by term. The denominator terms are sequence A007680 in the OEIS. The On-Line Encyclopedia of Integer Sequences ( OEIS) also cited simply as Sloane's, is an extensive searchable Database of Integer sequences
For iterative calculation of the above series, the following alternate formulation may be useful:

because
expresses the multiplier to turn the ith term into the (i+1)th term (assuming we number the "x" as the first term).
The error function at infinity is exactly 1 (see Gaussian integral). The Gaussian integral, or probability integral, is the Improper integral of the Gaussian function e^ over the entire real line
The derivative of the error function follows immediately from its definition:

The inverse error function has series

where c0 = 1 and

So we have the series expansion (note that common factors have been canceled from numerators and denominators):
(After cancellation the numerator/denominator fractions are entries A092676/A132467 in the OEIS; without cancellation the numerator terms are given in entry A002067. )
Note that error function's value at plus/minus infinity is equal to plus/minus 1.
When the results of a series of measurements are described by a normal distribution with standard deviation σ and expected value 0, then
is the probability that the error of a single measurement lies between −a and +a, for positive a. The normal distribution, also called the Gaussian distribution, is an important family of Continuous probability distributions applicable in many fields In Probability and Statistics, the standard deviation is a measure of the dispersion of a collection of values
The error and complementary error functions occur, for example, in solutions of the heat equation when boundary conditions are given by the Heaviside step function. The heat equation is an important Partial differential equation which describes the distribution of Heat (or variation in temperature in a given region over time In Mathematics, in the field of Differential equations a boundary value problem is a Differential equation together with a set of additional restraints The Heaviside step function, H, also called the unit step function, is a discontinuous function whose value is zero for negative
In digital optical communication system, BER is expressed by:

A useful asymptotic expansion of the complementary error function (and therefore also of the error function) for large x is
![\mathrm{erfc}(x) = \frac{e^{-x^2}}{x\sqrt{\pi}}\left [1+\sum_{n=1}^\infty (-1)^n \frac{1\cdot3\cdot5\cdots(2n-1)}{(2x^2)^n}\right ]=\frac{e^{-x^2}}{x\sqrt{\pi}}\sum_{n=0}^\infty (-1)^n \frac{(2n)!}{n!(2x)^{2n}}.\,](../../../../math/9/e/f/9ef17d31264a82a34acaa8d63c6806cf.png)
This series diverges for every finite x. In Telecommunication, an error ratio is the Ratio of the number of Bits elements, characters, or blocks incorrectly received In Mathematics an asymptotic expansion, asymptotic series or Poincaré expansion (after Henri Poincaré) is a formal series of functions which However, in practice only the first few terms of this expansion are needed to obtain a good approximation of erfc(x), whereas the Taylor series given above converges very slowly. In Mathematics, the Taylor series is a representation of a function as an infinite sum of terms calculated from the values of its Derivatives
Another approximation is given by

where

The error function is essentially identical to the standard normal cumulative distribution function, denoted Φ, as they differ only by scaling and translation. The normal distribution, also called the Gaussian distribution, is an important family of Continuous probability distributions applicable in many fields Indeed,
![\Phi(x) = \frac{1}{2}\left[1+\mbox{erf}\left(\frac{x}{\sqrt{2}}\right)\right]=\frac{1}{2}\,\mbox{erfc}\left(-\frac{x}{\sqrt{2}}\right).](../../../../math/8/4/5/845d7c679104f78205d9d1a768c27f5e.png)
The inverse of
is known as the normal quantile function, or probit function and may be expressed in terms of the inverse error function as

The standard normal cdf is used more often in probability and statistics, and the error function is used more often in other branches of mathematics. In Mathematics, if &fnof is a function from A to B then an inverse function for &fnof is a function in the opposite direction from B See also Quantile. In Probability theory, a quantile function of a Probability distribution is the inverse In Probability theory and Statistics, the probit function is the inverse Cumulative distribution function (CDF or Quantile function
The error function is a special case of the Mittag-Leffler function, and can also be expressed as a confluent hypergeometric function (Kummer's function):

It has a simple expression in terms of the Fresnel integral. In Mathematics, the Mittag-Leffler function E &alpha&beta is Special function, a complex function which depends on two In Mathematics, a confluent hypergeometric functions is a solution of a confluent hypergeometric equation, which is a degenerate form of a Hypergeometric differential Fresnel integrals, S ( x) and C ( x) are two Transcendental functions named after Augustin-Jean Fresnel that are used In terms of the Regularized Gamma function P and the incomplete gamma function,

is the sign function. In Mathematics, the Gamma function is defined by a definite integral. In Mathematics, the Gamma function is defined by a definite integral.

Some authors discuss the more general functions

Notable cases are:

After division by n!, all the En for odd n look similar (but not identical) to each other. Similarly, the En for even n look similar (but not identical) to each other after a simple division by n!. All generalised error functions for n>0 look similar on the positive x side of the graph.
These generalised functions can equivalently be expressed for x>0 using the Gamma function:

Therefore, we can define the error function in terms of the Gamma function:

The iterated integrals of the complementary error function are defined by

They have the power series

from which follow the symmetry properties

and

C/C++: It is provided by C99 as the functions double erf(double x) and double erfc(double x) in the header math. In Mathematics, the Gamma function (represented by the capitalized Greek letter '''&Gamma''') is an extension of the Factorial function h or cmath. The pairs of functions {erff(),erfcf()} and {erfl(),erfcl()} take and return values of type float and long double respectively. GCC makes these functions available in C++ too.
Fortran: E. g. gfortran provides the intrinsic real function ERF(X) and the double precision function DERF(X). gfortran is the name of the GNU Fortran Compiler, which is part of the GNU Compiler Collection (GCC