7.12.6.9 The log1p functions

Synopsis

1

#include <math.h>
double log1p(double x);
float log1pf(float x);
long double log1pl(long double x);

Description

2

The log1p functions compute the base-e (natural) logarithm of 1 plus the argument.[1] A domain error occurs if the argument is less than -1. A range error may occur if the argument equals -1.

Returns

3

The log1p functions return loge (1 + x).

Footnotes