{{htmlmetatags>metatag-robots=()
metatag-title=(LOG | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for LOG)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(LOG | ugBASIC User Manual)
metatag-og:description=(Manual page for LOG)
}}
====== ugBASIC User Manual ======
===== LOG =====
===== SYNTAX =====
= LOG(number)
==== PURPOSE ====
The ''LOG'' instruction calculate the natural logarithm of the given ''number'',
that must be ''FLOAT''. This is a mathematical function that is the inverse
of the natural exponential
(with base e). In other words, the natural logarithm of a number ''x'' is the
exponent to which Napier's number (e = 2.71828) must be raised to obtain ''x''.
This function can be used to solve differential equations, calculate integrals
and approximate functions, for normalizing data and it is used in many physical
and biological models.
==== EXAMPLE ====
x = LOG(21)
==== ABBREVIATION ====
Lg
==== AVAILABLE ON ====
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON LOG|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]