ERF(3M) — MATHEMATICAL LIBRARY
NAME
erf, erfc − error functions
SYNOPSIS
#include <math.h>
double erf(x)
double x;
double erfc(x)
double x;
DESCRIPTION
erf(x) returns the error function of x; where erf(x)=2/sqrt(pi)∗integralfrom0 erf(x):= (2/√π)∫0s0xexp(−t2)dt.
erfc(x) returns 1.0−erf(x), computed however by other methods that avoid cancellation for large x.
Sun Release 4.0 — Last change: 20 October 1987