Functions

log

Supported By

Syntax

[the] log of ( argument , base )

log ( argument , base )

Argument and base yield integers, numbers, or complexes.

Example

put log(10,4) -- yields 1.660964

Description

The log function returns the base-base logarithm of argument. That is, it returns:

ln(argument)/ln(base)

The log function is faster and more accurate than using the above formula.

If both arguments are integers or numbers, a number is returned. If either argument is a complex, a complex is returned.

See Also

exp, exp1, exp2, exp10, ln, ln1, log2, log10