summaryrefslogtreecommitdiffstats
path: root/lib/msun/man/erf.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/msun/man/erf.3')
-rw-r--r--lib/msun/man/erf.327
1 files changed, 16 insertions, 11 deletions
diff --git a/lib/msun/man/erf.3 b/lib/msun/man/erf.3
index 46886b0..a9a3e0a 100644
--- a/lib/msun/man/erf.3
+++ b/lib/msun/man/erf.3
@@ -28,14 +28,16 @@
.\" from: @(#)erf.3 6.4 (Berkeley) 4/20/91
.\" $FreeBSD$
.\"
-.Dd April 20, 1991
+.Dd July 13, 2014
.Dt ERF 3
.Os
.Sh NAME
.Nm erf ,
.Nm erff ,
+.Nm erfl ,
.Nm erfc ,
-.Nm erfcf
+.Nm erfcf ,
+.Nm erfcl
.Nd error function operators
.Sh LIBRARY
.Lb libm
@@ -45,18 +47,23 @@
.Fn erf "double x"
.Ft float
.Fn erff "float x"
+.Ft "long double"
+.Fn erfl "long double x"
.Ft double
.Fn erfc "double x"
.Ft float
.Fn erfcf "float x"
+.Ft "long double"
+.Fn erfcl "long double x"
.Sh DESCRIPTION
These functions calculate the error function of
.Fa x .
.Pp
The
-.Fn erf
-and the
-.Fn erff
+.Fn erf ,
+.Fn erff ,
+and
+.Fn erfl
functions calculate the error function of x; where
.Bd -ragged -offset indent
.if n \{\
@@ -69,9 +76,10 @@ erf\|(x) :=
.Ed
.Pp
The
-.Fn erfc
-and the
-.Fn erfcf
+.Fn erfc ,
+.Fn erfcf ,
+and
+.Fn erfcl
functions calculate the complementary error function of
.Fa x ;
that is
@@ -79,9 +87,6 @@ that is
subtracts the result of the error function
.Fn erf x
from 1.0.
-This is useful, since for large
-.Fa x
-places disappear.
.Sh SEE ALSO
.Xr math 3
.Sh HISTORY
OpenPOWER on IntegriCloud