NAME
log1p, log1pf, log1pl - logarithm of 1 plus argument
SYNOPSIS
#include <math.h> double log1p(double x); float log1pf(float x); long double log1pl(long double x); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): log1p(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 500 || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE log1pf(), log1pl(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
DESCRIPTION
These functions return a value equivalent to log (1 + x) The result is computed in a way that is accurate even if the value of x is near zero.
RETURN VALUE
On success, these functions return the natural logarithm of (1 + x). If x is a NaN, a NaN is returned. If x is positive infinity, positive infinity is returned. If x is -1, a pole error occurs, and the functions return -HUGE_VAL, -HUGE_VALF, or -HUGE_VALL, respectively. If x is less than -1 (including negative infinity), a domain error occurs, and a NaN (not a number) is returned.
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: Domain error: x is less than -1 An invalid floating-point exception (FE_INVALID) is raised. Pole error: x is -1 A divide-by-zero floating-point exception (FE_DIVBYZERO) 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 │ ├────────────────────────────┼───────────────┼─────────┤ │log1p(), log1pf(), log1pl() │ Thread safety │ MT-Safe │ └────────────────────────────┴───────────────┴─────────┘
CONFORMING TO
C99, POSIX.1-2001, POSIX.1-2008.
SEE ALSO
exp(3), expm1(3), log(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/. 2016-03-15 LOG1P(3)
More Linux Commands
manpages/ldap_add_ext_s.3.html
ldap_add_ext_s(3) - Perform an LDAP add operation (ManPage)
The ldap_add_ext_s() routine is used to perform an LDAP add operation. It takes dn, the DN of the entry to add, and attrs, a null-terminated array of the entrys
manpages/g3topbm.1.html
g3topbm(1) - convert a Group 3 fax file into a PBM image....
This program is part of Netpbm(1) g3topbm reads a Group 3 fax file with MH (Modified Huffman) compression as input and produces a PBM image as output. g3topbm t
manpages/pbmtomatrixorbital.1.html
pbmtomatrixorbital(1) convert a PBM image to a Matrix Orbita
This program is part of Netpbm(1) pbmtomatrixorbital reads a PBM image as input and produces as output an image that can be uploaded to a Matrix Orbital LCD dis
manpages/asinhl.3.html
asinhl(3) - inverse hyperbolic sine function (Man Page).....
The asinh() function calculates the inverse hyperbolic sine of x; that is the value whose hyperbolic sine is x. RETURN VALUE On success, these functions return
manpages/vim.1.html
vim(1) - Vi IMproved, a programmers text editor (Man Page)
Vim is a text editor that is upwards compatible to Vi. It can be used to edit all kinds of plain text. It is especially useful for editing programs. There are a
manpages/sigignore.3.html
sigignore(3) - System V signal API - Linux manual page......
These functions are provided in glibc as a compatibility interface for programs that make use of the historical System V signal API. This API is obsolete: new a
manpages/free.3.html
free(3) - Allocate and free dynamic memory - Linux man page
The malloc() function allocates size bytes and returns a pointer to the allocated memory. The memory is not initialized. If size is 0, then malloc() returns eit
manpages/hasmntopt.3.html
hasmntopt(3) - get file system descriptor file entry........
These routines are used to access the filesystem description file /etc/fstab and the mounted filesystem description file /etc/mtab. The setmntent() function ope
manpages/lefty.1.html
lefty(1) - A Programmable Graphics Editor - Linux man page
lefty is a two-view graphics editor for technical pictures. This editor has no hardwired knowledge about specific picture layouts or editing operations. Each pi
manpages/dladdr.3.html
dladdr(3) - programming interface to dynamic linking loader
The four functions dlopen(), dlsym(), dlclose(), dlerror() implement the interface to the dynamic linking loader. dlerror() The function dlerror() returns a hum
manpages/hyperspace.1.html
hyperspace(1) - Flying through hyper space. - Linux man page
From Terry Walsh (http://reallyslick.com): This is a real number cruncher of a screensaver. Computers are getting much more powerful these days, and my old save
manpages/pamcrater.1.html
pamcrater(1) create cratered terrain by fractal forgery.....
This program is part of Netpbm(1) pamcrater creates a PAM image which is a terrain map of cratered terrain. The terrain is as if a given number of impacts into
