Name: log
Category: Arithmetic
Description:
Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).
Syntax:
log(x)
log(x, base)
Examples:
log(3.5)
1.2527629684954
a = log(2.4)
0.8754687373539
exp(a)
2.4
10 ^ 4
10000
log(10000, 10)
4
log(10000) / log(10)
4
b = log(1024, 2)
10
2 ^ b
1024
See also: exp, log1p, log2, log10