log(var x): var

Logarithm of x with base e.

Parameters:

x - any var.

Returns:

ln(x)

Remarks:

Examples:

x = log(1); // x == 0 
x = log(2.718); // x == 1 (2.718 is an approximation to the constant e).
x = log(y)/log(2); // x == log2(y), i.e. log(y) base 2.

See also:

exp, pow, sqrt ► latest version online