log
log(x)
log(x, base)
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).
Try it yourself:
$1 | log(3.5)
| |
$2 | a = log(2.4)
| |
$3 | exp(a)
| |
$4 | 10 ^ 4
| |
$5 | log(10000, 10)
| |
$6 | log(10000) / log(10)
| |
$7 | b = log(1024, 2)
| |
$8 | 2 ^ b
|