]>
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 | .\" |
5fbde956 | 5 | .\" SPDX-License-Identifier: Linux-man-pages-copyleft |
fea681da MK |
6 | .\" |
7 | .\" References consulted: | |
8 | .\" Linux libc source code | |
9 | .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) | |
10 | .\" 386BSD man pages | |
11 | .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) | |
12 | .\" Modified 2002-07-27 by Walter Harms | |
13 | .\" (walter.harms@informatik.uni-oldenburg.de) | |
14 | .\" | |
45186a5d | 15 | .TH ERF 3 2021-03-22 "Linux man-pages (unreleased)" |
fea681da | 16 | .SH NAME |
7e8b1f33 | 17 | erf, erff, erfl \- error function |
2af19291 AC |
18 | .SH LIBRARY |
19 | Math library | |
8fc3b2cf | 20 | .RI ( libm ", " \-lm ) |
fea681da MK |
21 | .SH SYNOPSIS |
22 | .nf | |
23 | .B #include <math.h> | |
dbfe9c70 | 24 | .PP |
fea681da | 25 | .BI "double erf(double " x ); |
fea681da | 26 | .BI "float erff(float " x ); |
fea681da | 27 | .BI "long double erfl(long double " x ); |
dbfe9c70 | 28 | .PP |
fea681da | 29 | .fi |
d39ad78f | 30 | .RS -4 |
cc4615cc MK |
31 | Feature Test Macro Requirements for glibc (see |
32 | .BR feature_test_macros (7)): | |
d39ad78f | 33 | .RE |
68e4db0a | 34 | .PP |
280a7a95 | 35 | .BR erf (): |
9d2adbae | 36 | .nf |
5c10d2c5 | 37 | _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE |
9d2adbae MK |
38 | || /* Since glibc 2.19: */ _DEFAULT_SOURCE |
39 | || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE | |
40 | .fi | |
98c9347c | 41 | .PP |
6d5ff921 | 42 | .BR erff (), |
280a7a95 | 43 | .BR erfl (): |
9d2adbae | 44 | .nf |
5c10d2c5 | 45 | _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L |
9d2adbae MK |
46 | || /* Since glibc 2.19: */ _DEFAULT_SOURCE |
47 | || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE | |
48 | .fi | |
fea681da | 49 | .SH DESCRIPTION |
5600f73a | 50 | These functions return the error function of |
022671eb | 51 | .IR x , |
5600f73a | 52 | defined as |
1ae6b2c7 AC |
53 | .PP |
54 | .in +4n | |
55 | .EX | |
56 | erf(x) = 2/sqrt(pi) * integral from 0 to x of exp(\-t*t) dt | |
57 | .EE | |
58 | .in | |
6d5ff921 | 59 | .SH RETURN VALUE |
0f2cc50c | 60 | On success, these functions return the value of the error function of |
6d5ff921 | 61 | .IR x , |