erfcl(3)

erfcl3

Error function operators

Part of erf(3).

Usage

#include <math.h>

double

erf(double x);

float

erff(float x);

long double

erfl(long double x);

double

erfc(double x);

float

erfcf(float x);

long double

erfcl(long double x);

Library

Math Library (libm, -lm)

Overview

These functions calculate the error function of x.

The erf(), erff(), and erfl() functions calculate the error function of x; where

erf(x) = 2/sqrt(pi)∗integral from 0 to x of exp(-t∗t) dt.

The erfc(), erfcf(), and erfcl() functions calculate the complementary error function of x; that is erfc() subtracts the result of the error function erf(x) from 1.0.

Releases

29 releases since FreeBSD 10.1-RELEASE; the text changed 18 times.

  1. 10.1
  2. 10.2
  3. 10.3
  4. 10.4
  5. 11.0
  6. 11.1
  7. 11.2
  8. 11.3
  9. 11.4
  10. 12.0
  11. 12.1
  12. 12.2
  13. 12.3
  14. 12.4
  15. 13.0–13.2
  16. 13.3
  17. 13.4–13.5
  18. 14.0–14.1
  19. 14.2–16.0

Standards

The erf(), erff(), erfl(), erfc(), erfcf() and erfcl() functions conform to ISO/IEC 9899:1999 (“ISO C99”).

History

The erf() and erfc() functions appeared in 4.3BSD.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.