Version:

Computes the natural logarithm of the input elements.

The natural logarithm of zero is -inf.

## Syntax

c = log(a)

## a

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

## c

Natural logarithm of the elements in a. c returns complex numbers for negative or complex elements in a. c is an array of the same size as a.