MicrOS
log1p.c File Reference
#include "../math.h"

Functions

double log1p (double x)
 Compute natural logarithm of value + 1. More...
 

Function Documentation

◆ log1p()

double log1p ( double  x)

Compute natural logarithm of value + 1.

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

Parameters
xValue whose logarithm is calculated.
Returns
The log1p functions return log_e(1 + x).