< Futurebasic < Language < Reference
LOG
Syntax
naturalLog# = LOG(expr)
Description
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
.
Note:
To find the logarithm of expr
for an arbitrary base n
, use this formula:
theLog# = LOG(expr)/LOG(n)
See Also
EXP; LOG10; LOG2
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.