]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/erf.3
intro.1, _exit.2, access.2, alarm.2, alloc_hugepages.2, arch_prctl.2, bind.2, chdir...
[thirdparty/man-pages.git] / man3 / erf.3
CommitLineData
fea681da 1.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
6d5ff921
MK
2.\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3.\" <mtk.manpages@gmail.com>
fea681da 4.\"
93015253 5.\" %%%LICENSE_START(VERBATIM)
fea681da
MK
6.\" Permission is granted to make and distribute verbatim copies of this
7.\" manual provided the copyright notice and this permission notice are
8.\" preserved on all copies.
9.\"
10.\" Permission is granted to copy and distribute modified versions of this
11.\" manual under the conditions for verbatim copying, provided that the
12.\" entire resulting derived work is distributed under the terms of a
13.\" permission notice identical to this one.
c13182ef 14.\"
fea681da
MK
15.\" Since the Linux kernel and libraries are constantly changing, this
16.\" manual page may be incorrect or out-of-date. The author(s) assume no
17.\" responsibility for errors or omissions, or for damages resulting from
18.\" the use of the information contained herein. The author(s) may not
19.\" have taken the same level of care in the production of this manual,
20.\" which is licensed free of charge, as they might when working
21.\" professionally.
c13182ef 22.\"
fea681da
MK
23.\" Formatted or processed versions of this manual, if unaccompanied by
24.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 25.\" %%%LICENSE_END
fea681da
MK
26.\"
27.\" References consulted:
28.\" Linux libc source code
29.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
30.\" 386BSD man pages
31.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
32.\" Modified 2002-07-27 by Walter Harms
33.\" (walter.harms@informatik.uni-oldenburg.de)
34.\"
50831f9b 35.TH ERF 3 2010-09-20 "GNU" "Linux Programmer's Manual"
fea681da 36.SH NAME
6d5ff921 37erf, erff, erfl, \- error function
fea681da
MK
38.SH SYNOPSIS
39.nf
40.B #include <math.h>
d70f215a 41
fea681da 42.BI "double erf(double " x );
fea681da 43.BI "float erff(float " x );
fea681da 44.BI "long double erfl(long double " x );
d70f215a 45
fea681da 46.fi
20c58d70 47Link with \fI\-lm\fP.
cc4615cc
MK
48.sp
49.in -4n
50Feature Test Macro Requirements for glibc (see
51.BR feature_test_macros (7)):
52.in
53.sp
54.ad l
280a7a95 55.BR erf ():
cf22cd40 56.RS 4
85f4ef69
MK
57_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE ||
58_POSIX_C_SOURCE\ >=\ 200112L;
cf22cd40
MK
59.br
60or
cc4615cc 61.I cc\ -std=c99
cf22cd40 62.RE
6d5ff921
MK
63.br
64.BR erff (),
280a7a95 65.BR erfl ():
cf22cd40 66.RS 4
f1cb91e2 67_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
85f4ef69 68_POSIX_C_SOURCE\ >=\ 200112L;
cf22cd40
MK
69.br
70or
6d5ff921 71.I cc\ -std=c99
cf22cd40 72.RE
cc4615cc 73.ad b
fea681da 74.SH DESCRIPTION
60a90ecd
MK
75The
76.BR erf ()
6d5ff921 77function returns the error function of \fIx\fP, defined
fea681da
MK
78as
79.TP
658670de 80 erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(\-t*t) dt
6d5ff921
MK
81.SH RETURN VALUE
82On success, these functions return the error function of
83.IR x ,