Version:

Computes the natural logarithm of (x + 1) in the neighborhood of zero.

## Syntax

c = log1p(a)

## a

Scalar or array of any dimension of floating point or complex numbers.

## c

(x+1) logarithm of the elements in a. c returns complex numbers for complex elements in a or if a is less than -1. c is an array of the same size as a.