xref: /freebsd/lib/msun/man/erf.3 (revision 3b5e0d0f96cb7adde49e9296306648d79b3804e9)
13a8617a8SJordan K. Hubbard.\" Copyright (c) 1985, 1991 Regents of the University of California.
23a8617a8SJordan K. Hubbard.\" All rights reserved.
33a8617a8SJordan K. Hubbard.\"
43a8617a8SJordan K. Hubbard.\" Redistribution and use in source and binary forms, with or without
53a8617a8SJordan K. Hubbard.\" modification, are permitted provided that the following conditions
63a8617a8SJordan K. Hubbard.\" are met:
73a8617a8SJordan K. Hubbard.\" 1. Redistributions of source code must retain the above copyright
83a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer.
93a8617a8SJordan K. Hubbard.\" 2. Redistributions in binary form must reproduce the above copyright
103a8617a8SJordan K. Hubbard.\"    notice, this list of conditions and the following disclaimer in the
113a8617a8SJordan K. Hubbard.\"    documentation and/or other materials provided with the distribution.
123a8617a8SJordan K. Hubbard.\" 4. Neither the name of the University nor the names of its contributors
133a8617a8SJordan K. Hubbard.\"    may be used to endorse or promote products derived from this software
143a8617a8SJordan K. Hubbard.\"    without specific prior written permission.
153a8617a8SJordan K. Hubbard.\"
163a8617a8SJordan K. Hubbard.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
173a8617a8SJordan K. Hubbard.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
183a8617a8SJordan K. Hubbard.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
193a8617a8SJordan K. Hubbard.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
203a8617a8SJordan K. Hubbard.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
213a8617a8SJordan K. Hubbard.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
223a8617a8SJordan K. Hubbard.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
233a8617a8SJordan K. Hubbard.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
243a8617a8SJordan K. Hubbard.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
253a8617a8SJordan K. Hubbard.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
263a8617a8SJordan K. Hubbard.\" SUCH DAMAGE.
273a8617a8SJordan K. Hubbard.\"
283a8617a8SJordan K. Hubbard.\"     from: @(#)erf.3	6.4 (Berkeley) 4/20/91
297f3dea24SPeter Wemm.\" $FreeBSD$
303a8617a8SJordan K. Hubbard.\"
31*3b5e0d0fSSteve Kargl.Dd July 13, 2014
323a8617a8SJordan K. Hubbard.Dt ERF 3
33a307d598SRuslan Ermilov.Os
343a8617a8SJordan K. Hubbard.Sh NAME
353a8617a8SJordan K. Hubbard.Nm erf ,
367a15a32aSJordan K. Hubbard.Nm erff ,
37*3b5e0d0fSSteve Kargl.Nm erfl ,
387a15a32aSJordan K. Hubbard.Nm erfc ,
39*3b5e0d0fSSteve Kargl.Nm erfcf ,
40*3b5e0d0fSSteve Kargl.Nm erfcl
413a8617a8SJordan K. Hubbard.Nd error function operators
4264890443SBruce Evans.Sh LIBRARY
4364890443SBruce Evans.Lb libm
443a8617a8SJordan K. Hubbard.Sh SYNOPSIS
4532eef9aeSRuslan Ermilov.In math.h
463a8617a8SJordan K. Hubbard.Ft double
473a8617a8SJordan K. Hubbard.Fn erf "double x"
487a15a32aSJordan K. Hubbard.Ft float
497a15a32aSJordan K. Hubbard.Fn erff "float x"
50*3b5e0d0fSSteve Kargl.Ft "long double"
51*3b5e0d0fSSteve Kargl.Fn erfl "long double x"
523a8617a8SJordan K. Hubbard.Ft double
533a8617a8SJordan K. Hubbard.Fn erfc "double x"
547a15a32aSJordan K. Hubbard.Ft float
557a15a32aSJordan K. Hubbard.Fn erfcf "float x"
56*3b5e0d0fSSteve Kargl.Ft "long double"
57*3b5e0d0fSSteve Kargl.Fn erfcl "long double x"
583a8617a8SJordan K. Hubbard.Sh DESCRIPTION
593a8617a8SJordan K. HubbardThese functions calculate the error function of
603a8617a8SJordan K. Hubbard.Fa x .
613a8617a8SJordan K. Hubbard.Pp
623a8617a8SJordan K. HubbardThe
63*3b5e0d0fSSteve Kargl.Fn erf ,
64*3b5e0d0fSSteve Kargl.Fn erff ,
65*3b5e0d0fSSteve Kargland
66*3b5e0d0fSSteve Kargl.Fn erfl
677a15a32aSJordan K. Hubbardfunctions calculate the error function of x; where
6846eea498SRuslan Ermilov.Bd -ragged -offset indent
693a8617a8SJordan K. Hubbard.if n \{\
701a0a9345SRuslan Ermiloverf(x) = 2/sqrt(pi)\(**\|integral from 0 to x of exp(\-t\(**t) dt.
711a0a9345SRuslan Ermilov\}
723a8617a8SJordan K. Hubbard.if t \{\
733a8617a8SJordan K. Hubbarderf\|(x) :=
741a0a9345SRuslan Ermilov(2/\(sr\(*p)\|\(is\d\s8\z0\s10\u\u\s8x\s10\d\|exp(\-t\u\s82\s10\d)\|dt.
751a0a9345SRuslan Ermilov\}
763a8617a8SJordan K. Hubbard.Ed
773a8617a8SJordan K. Hubbard.Pp
783a8617a8SJordan K. HubbardThe
79*3b5e0d0fSSteve Kargl.Fn erfc ,
80*3b5e0d0fSSteve Kargl.Fn erfcf ,
81*3b5e0d0fSSteve Kargland
82*3b5e0d0fSSteve Kargl.Fn erfcl
837a15a32aSJordan K. Hubbardfunctions calculate the complementary error function of
843a8617a8SJordan K. Hubbard.Fa x ;
853a8617a8SJordan K. Hubbardthat is
863a8617a8SJordan K. Hubbard.Fn erfc
873a8617a8SJordan K. Hubbardsubtracts the result of the error function
883a8617a8SJordan K. Hubbard.Fn erf x
893a8617a8SJordan K. Hubbardfrom 1.0.
903a8617a8SJordan K. Hubbard.Sh SEE ALSO
913a8617a8SJordan K. Hubbard.Xr math 3
923a8617a8SJordan K. Hubbard.Sh HISTORY
933a8617a8SJordan K. HubbardThe
943a8617a8SJordan K. Hubbard.Fn erf
953a8617a8SJordan K. Hubbardand
963a8617a8SJordan K. Hubbard.Fn erfc
973a8617a8SJordan K. Hubbardfunctions appeared in
983a8617a8SJordan K. Hubbard.Bx 4.3 .
99