Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

erf(3M)

NAME

erf, erfc − error functions

SYNOPSIS

cc [ flag ... ] file ... −lm [ library ... ]

#include <math.h>

double erf(double x);

double erfc(double x);

MT-LEVEL

MT-Safe

DESCRIPTION

erf(x) returns the error function of x; where erf (x) = 2/sqrt(pi)∗integral from 0 to x of exp(−t∗t) dt. erf(x):= (2/√π)∫0s0xexp (−t2)dt.

erfc(x) returns 1.0−erf(x), computed however by other methods that avoid cancellation for large x.

SunOS 5.5/SPARC  —  Last change: 4 Mar 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026