2 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
3 .\" permission to reproduce portions of its copyrighted documentation.
4 .\" Original documentation from The Open Group can be obtained online at
5 .\" http://www.opengroup.org/bookstore/.
7 .\" The Institute of Electrical and Electronics Engineers and The Open
8 .\" Group, have given us permission to reprint portions of their
11 .\" In the following statement, the phrase ``this text'' refers to portions
12 .\" of the system documentation.
14 .\" Portions of this text are reprinted and reproduced in electronic form
15 .\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
16 .\" Standard for Information Technology -- Portable Operating System
17 .\" Interface (POSIX), The Open Group Base Specifications Issue 6,
18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
19 .\" Engineers, Inc and The Open Group. In the event of any discrepancy
20 .\" between these versions and the original IEEE and The Open Group
21 .\" Standard, the original IEEE and The Open Group Standard is the referee
22 .\" document. The original Standard can be obtained online at
23 .\" http://www.opengroup.org/unix/online.html.
25 .\" This notice shall appear on any product containing this material.
27 .\" The Berkeley software License Agreement specifies the terms and conditions
28 .\" for redistribution.
31 .\" Copyright (c) 1983 Regents of the University of California.
32 .\" All rights reserved.
33 .\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved.
34 .\" Copyright (c) 2001, The IEEE and The Open Group. All Rights Reserved.
35 .\" Portions Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
37 .TH ERF 3M "Jul 12, 2006" "SunOS 5.11" "Mathematical Library Functions"
39 erf, erff, erfl \- error function
43 c99 [ \fIflag\fR... ] \fIfile\fR... \fB-lm\fR [ \fIlibrary\fR... ]
46 \fBdouble\fR \fBerf\fR(\fBdouble\fR \fIx\fR);
51 \fBfloat\fR \fBerff\fR(\fBfloat\fR \fIx\fR);
56 \fBlong double\fR \fBerfl\fR(\fBlong double\fR \fIx\fR);
62 These functions compute the error function of their argument \fIx\fR, defined
65 2/sqrt(pi)*intregral from 0 to x of exp(-t*t) dt
69 Upon successful completion, these functions return the value of the error
73 If \fIx\fR is NaN, a NaN is returned.
76 If \fIx\fR is \(+-0, \(+-0 is returned.
79 If \fIx\fR is \(+-Inf, \(+-1 is returned.
82 If \fIx\fR is subnormal, 2/sqrt(\c
90 See \fBattributes\fR(5) for descriptions of the following attributes:
99 ATTRIBUTE TYPE ATTRIBUTE VALUE
101 Interface Stability Standard
109 \fBerfc\fR(3M), \fBfeclearexcept\fR(3M), \fBfetestexcept\fR(3M),
110 \fBisnan\fR(3M), \fBmath.h\fR(3HEAD), \fBattributes\fR(5), \fBstandards\fR(5)