erff(3)


NAME

   erf, erff, erfl, - error function

SYNOPSIS

   #include <math.h>

   double erf(double x);
   float erff(float x);
   long double erfl(long double x);

   Link with -lm.

   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

   erf():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE
           || /* Since glibc 2.19: */ _DEFAULT_SOURCE
           || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
   erff(), erfl():
       _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
           || /* Since glibc 2.19: */ _DEFAULT_SOURCE
           || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

DESCRIPTION

   These functions return the error function of x, defined as

       erf(x) = 2/sqrt(pi)* integral from 0 to x of exp(-t*t) dt

RETURN VALUE

   On  success, these functions return the error function of x, a value in
   the range [-1, 1].

   If x is a NaN, a NaN is returned.

   If x is +0 (-0), +0 (-0) is returned.

   If x is positive infinity (negative infinity), +1 (-1) is returned.

   If x is subnormal, a range  error  occurs,  and  the  return  value  is
   2*x/sqrt(pi).

ERRORS

   See  math_error(7) for information on how to determine whether an error
   has occurred when calling these functions.

   The following errors can occur:

   Range error: result underflow (x is subnormal)
          An underflow floating-point exception (FE_UNDERFLOW) is raised.

   These functions do not set errno.

ATTRIBUTES

   For  an  explanation  of  the  terms  used   in   this   section,   see
   attributes(7).

   ┌──────────────────────┬───────────────┬─────────┐
   │InterfaceAttributeValue   │
   ├──────────────────────┼───────────────┼─────────┤
   │erf(), erff(), erfl() │ Thread safety │ MT-Safe │
   └──────────────────────┴───────────────┴─────────┘

CONFORMING TO

   C99, POSIX.1-2001, POSIX.1-2008.

   The variant returning double also conforms to SVr4, 4.3BSD.

SEE ALSO

   cerf(3), erfc(3), exp(3)

COLOPHON

   This  page  is  part of release 4.09 of the Linux man-pages project.  A
   description of the project, information about reporting bugs,  and  the
   latest     version     of     this    page,    can    be    found    at
   https://www.kernel.org/doc/man-pages/.


More Linux Commands

manpages/roma.1.html
roma(1) - compile a TEI ODD specification into schemas and d
This manual page is not meant to be exhaustive. There is some more information in the help files for the web version of Roma, and plenty of background data abou

manpages/XRRConfigRotations.3.html
XRRConfigRotations(3) - X Resize, Rotate and Reflection exte
Xrandr is a simple library designed to interface the X Resize and Rotate Extension. This allows clients to change the size and rotation of the root window of a

manpages/item_count.3menu.html
item_count(3menu) - make and break connections between items
The function set_menu_items changes the item pointer array of the given menu. The array must be terminated by a NULL. The function menu_items returns the item a

manpages/gnutls_x509_crl_get_crt_serial.3.html
gnutls_x509_crl_get_crt_serial(3) - API function (Man Page)
This function will retrieve the serial number of the specified, by the index, revoked certificate. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwi

manpages/Tcl_UniCharLen.3.html
Tcl_UniCharLen(3) - routines for manipulating UTF-8 strings
These routines convert between UTF-8 strings and Tcl_UniChars. A Tcl_UniChar is a Unicode character represented as an unsigned, fixed-size quantity. A UTF-8 cha

manpages/auparse_get_filename.3.html
auparse_get_filename(3) - get the filename where record was
auparse_get_filename will return the name of the source file where the record was found if the source type is AUSOURCE_FILE or AUSOURCE_FILE_ARRAY. For other so

manpages/Tcl_GetEncodingNameFromEnvironment.3.html
Tcl_GetEncodingNameFromEnvironment(3) - procedures for creat
Tcl_GetEncoding finds an encoding given its name. The name may refer to a built-in Tcl encoding, a user-defined encoding registered by calling Tcl_CreateEncodin

manpages/wclear.3ncurses.html
wclear(3ncurses) - clear all or part of a curses window.....
The erase and werase routines copy blanks to every position in the window, clearing the screen. The clear and wclear routines are like erase and werase, but the

manpages/XkbLookupKeySym.3.html
XkbLookupKeySym(3) - Find the symbol associated with a key f
XkbLookupKeySym is the equivalent of the core XLookupKeySym function. For the core keyboard, given a keycode key and an Xkb state state, XkbLookupKeySym returns

manpages/glGetLightiv.3gl.html
glGetLightiv(3gl) - return light source parameter values....
glGetLight returns in params the value or values of a light source parameter. light names the light and is a symbolic name of the form GL_LIGHT$i$ for 0 &lt;= $i$

manpages/pcre_jit_exec.3.html
pcre_jit_exec(3) Perl-compatible regular expressions........
This function matches a compiled regular expression that has been successfully studied with one of the JIT options against a given subject string, using a match

manpages/ul.1.html
ul(1) - do underlining (Commands - Linux manual page).......
ul reads the named files (or standard input if none are given) and translates occurrences of underscores to the sequence which indicates underlining for the ter





We can't live, work or learn in freedom unless the software we use is free.