loge(X)

Returns the natural logarithm of the given value.

Syntax

loge(X)

Input

Argument Type Description
X any numeric type A numeric value

Return Value

Returns a decimal number corresponding to the natural logarithm of X, or ln X.

If X is 0, the result is -0i (negative infinity).

If X is negative, the result is N/A.

If X is N/A, the result is N/A.

Sample Usage

X loge(X)
0 -0i
1 0
-2 NA
2 0.6931472
9 2.1972246
9.178 2.2168093
NA NA