##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::erfc

From cppreference.com
< cpp‎ | numeric‎ | math

Defined in header `<cmath>` |  |
float erfc( float arg ); |  | (since C++11)
double erfc( double arg ); |  | (since C++11)
long double erfc( long double arg ); |  | (since C++11)
double erfc( Integral arg ); |  | (since C++11)

Computes the complementary error function of `arg`.

### [edit] Parameters

arg | - | value of a floating-point or Integral type

### [edit] Return value

The value of the complementary error function of `arg`, that is 1-std::erf(arg).

### [edit] See also

erf (C++11) | error function (function) [edit]

### [edit] External links

Weisstein, Eric W. "Erfc." From MathWorld--A Wolfram Web Resource.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/math/erfc&oldid=67147"