the
log
of
(
argument ,
base )
log
(
argument ,
base )
Argument and base yield integer
s, number
s, or complex
es.
put log(10,4) -- yields 1.660964
The log
function returns the base-base logarithm of argument. That is, it returns:
The log
function is faster and more accurate than using the above formula.
If both arguments are integer
s or number
s, a number
is returned. If either argument is a complex
, a complex
is returned.