The Complementary Error Function.

View versions (2)

Interface

#include <codecogs/maths/special/errorfnc.h>

using namespace Maths::Special;

The complementary error function, usually denoted as erfc is directly related to the Error Function by:

errorFnC(x) = 1 -  errorFn(x)

Thus

erfc(x) = 1 - erf(x) = \frac{2}{\sqrt \pi} \int_x^\infty e^{-t^2} \: dt
(1)

It therefore has the following shape: \graph x=-2.9:2.9

Example 1

#include <codecogs/maths/special/errorfnc.h>
#include <stdio.h>
using namespace Maths::Special;
int main()
{
  double x = 0.5;
  printf("\n errorFnC(%f) = %f", x, errorFnC(x));
}

Output:

errorFn(0.500000) = 0.479500

Parameters

x
is the lower limit of the integration

Returns

the Complementary Error Function

References

http://mathworld.wolfram.com/Erfc.html

GPL Licence — free for non commercial use. See Licence details.

Interactive Calculator

x
Result