erfcf Function

Calculates the complementary error function of the argument.

Include

<math.h>

Prototype

float erfcf(float x);

Argument

x
upper limit of summation

Return Value

Calculates the complementary error function of the argument, being the 1 minus the error function of the same argument.

Example

#include <math.h>
#include <stdio.h>

int main(void)
{
  float x, y;

  x = 0.5;
  y = erfcf(x);
  printf("The complementary error function from 0 to %f is %f\n", x, y);

  x = -0.75;
  y = erfcf(x);
  printf("The complementary error function from 0 to %f is %f\n", x, y);
}

Example Output

The complementary error function from 0 to 0.500000 is 0.479500
The complementary error function from 0 to -0.750000 is 1.711156