FutureBasic Logo

<<    Index    >> FutureBasic 5

log   function

naturalLog# = log(expr)

Returns the natural logarithm of expr. The natural logarithm uses the transcendental number "e" as its base. log always returns a double-precision result.
log is the inverse of the exp function. That is: log(exp(x)) equals x.

To find the logarithm of expr for an arbitrary base n, use this formula:
theLog# = log(expr)/log(n)

See Also:
exp; log10; log2