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). ┌──────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├──────────────────────┼───────────────┼─────────┤ │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/ksshaskpass.1.html
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-
manpages/XtNewString.3.html
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,
manpages/SDL_WM_IconifyWindow.3.html
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
manpages/Net::DNS::FAQ.3pm.html
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
manpages/ppmchange.1.html
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
manpages/XMapRequestEvent.3.html
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
manpages/glColor3b.3gl.html
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
manpages/Tcl_SetDefaultEncodingDir.3.html
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
manpages/imtest.1.html
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
manpages/re_exec.3.html
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
manpages/ldap_count_values.3.html
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
manpages/Module::Build::Platform::VMS.3pm.html
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
