Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ erfc(3M) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

isnan(3M)

attributes(5)

erf(3M)

NAME

erf, erfc − error and complementary error functions

SYNOPSIS

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

#include <math.h>

double erf(double x);

double erfc(double x);

DESCRIPTION

The erf() function computes the error function of x, defined as:

2 over √πx∫0e−t2dt

The erfc() function computes 1.0 − erf(x). 

RETURN VALUES

Upon successful completion, erf() and erfc() return the value of the error function and complementary error function, respectively. 

If x is NaN, NaN is returned. 

ERRORS

No errors will occur. 

USAGE

The erfc() function is provided because of the extreme loss of relative accuracy if erf(x) is called for large x and the result subtracted from 1.0. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

isnan(3M), attributes(5)

SunOS 5.6  —  Last change: 29 Dec 1996

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