Search…
⌃K
Links

log

To calculate the logarithm
The function returns the logarithm of a number to a base. If no parameter is specified for the base, it is 10. In the case of 0, the result is -∞ (minus infinity).

Syntax

log(number)
log(number, number)

Return

number

Example

log(x,y) To calculate the logarithm of a number x to the base of a number y.
log(x) To calculate the logarithm of a number x to the base of 10.
1
log(1)
Result: 0
1
log(0)
Result: -∞
1
log(3,5)
Result: 0.6826061944859853
Last modified 2mo ago