]>
Commit | Line | Data |
---|---|---|
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 | .\" | |
4b8c67d9 | 35 | .TH ERF 3 2017-09-15 "GNU" "Linux Programmer's Manual" |
fea681da | 36 | .SH NAME |
7e8b1f33 | 37 | erf, erff, erfl \- error function |
fea681da MK |
38 | .SH SYNOPSIS |
39 | .nf | |
40 | .B #include <math.h> | |
dbfe9c70 | 41 | .PP |
fea681da | 42 | .BI "double erf(double " x ); |
fea681da | 43 | .BI "float erff(float " x ); |
fea681da | 44 | .BI "long double erfl(long double " x ); |
dbfe9c70 | 45 | .PP |
fea681da | 46 | .fi |
20c58d70 | 47 | Link with \fI\-lm\fP. |
68e4db0a | 48 | .PP |
cc4615cc MK |
49 | .in -4n |
50 | Feature Test Macro Requirements for glibc (see | |
51 | .BR feature_test_macros (7)): | |
52 | .in | |
68e4db0a | 53 | .PP |
cc4615cc | 54 | .ad l |
280a7a95 | 55 | .BR erf (): |
cf22cd40 | 56 | .RS 4 |
636ed4d5 MK |
57 | _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE |
58 | || /* Since glibc 2.19: */ _DEFAULT_SOURCE | |
59 | || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE | |
cf22cd40 | 60 | .RE |
6d5ff921 MK |
61 | .br |
62 | .BR erff (), | |
280a7a95 | 63 | .BR erfl (): |
cf22cd40 | 64 | .RS 4 |
636ed4d5 MK |
65 | _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L |
66 | || /* Since glibc 2.19: */ _DEFAULT_SOURCE | |
67 | || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE | |
cf22cd40 | 68 | .RE |
cc4615cc | 69 | .ad b |
fea681da | 70 | .SH DESCRIPTION |
5600f73a | 71 | These functions return the error function of |
022671eb | 72 | .IR x , |
5600f73a | 73 | defined as |
fea681da | 74 | .TP |
7e8b1f33 | 75 | erf(x) = 2/sqrt(pi) * integral from 0 to x of exp(\-t*t) dt |
6d5ff921 | 76 | .SH RETURN VALUE |
0f2cc50c | 77 | On success, these functions return the value of the error function of |
6d5ff921 | 78 | .IR x , |