[ top | up ]

Logarithms and Exponentials

Syntax

log(x)
log10(x)
log2(x)
exp(x)

Description

log computes natural logarithms, log10 computes common logarithms log2 computes binary (i.e. base 2) logarithms and exp computes the exponential function.

Each of these functions takes a single numeric vector as argument and returns a vector of the same length containing the transformed values.