erf, erff, erfl, - error function


   #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)):

       _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


   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


   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


   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.


   For  an  explanation  of  the  terms  used   in   this   section,   see

   │InterfaceAttributeValue   │
   │erf(), erff(), erfl() │ Thread safety │ MT-Safe │


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

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


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


   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

More Linux Commands

ksshaskpass(1) - prompts a user for a passphrase using KDE
kshaskpass is a KDE-based passphrase dialog for use with OpenSSH. It is intended to be called by the ssh-add(1) program and not invoked directly. It allows ssh-

XtNewString(3) - memory management functions (Man Page).....
The XtMalloc functions returns a pointer to a block of storage of at least the specified size bytes. If there is insufficient memory to allocate the new block,

SDL_WM_IconifyWindow(3) - Iconify/Minimise the window.......
If the application is running in a window managed environment SDL attempts to iconify/minimise it. If SDL_WM_IconifyWindow is successful, the application will r

Net::DNS::FAQ(3pm) - Frequently Asked Net::DNS Questions....
This document serves to answer the most frequently asked questions on both the Net::DNS Mailing List and those sent to the author. The latest version of this FA

ppmchange(1) - change all pixels of one color to another in
This program is part of Netpbm(1) ppmchange reads a PPM image as input and changes all pixels of color oldcolor to color newcolor. You may specify up to 256 old

XMapRequestEvent(3) - MapRequest event structure (Man Page)
The structure for MapRequest events contains: typedef struct { int type; /* MapRequest */ unsigned long serial; /* # of last request processed by server */ Bool

glColor3b(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va

Tcl_SetDefaultEncodingDir(3) - procedures for creating and u
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

imtest(1) - interactive IMAP test program - Linux man page
imtest is a utility that allows you to authenticate to a IMAP or IMSP server and interactively issue commands to it. Once authenticated you may issue any IMAP o

re_exec(3) - BSD regex functions (Library - Linux man page)
re_comp() is used to compile the null-terminated regular expression pointed to by regex. The compiled pattern occupies a static area, the pattern buffer, which

ldap_count_values(3) - LDAP attribute value handling routine
These routines are used to retrieve and manipulate attribute values from an LDAP entry as returned by ldap_first_entry(3) or ldap_next_entry(3). ldap_get_values

Module::Build::Platform::VMS(3pm) - Builder class for VMS pl
This module inherits from Module::Build::Base and alters a few minor details of its functionality. Please see Module::Build for the general docs. Overridden Met

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