math.log: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: result = math.log(num)] | [h: result = math.log(num)] | ||
</ | </syntaxhighlight> | ||
|examples= | |examples= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: math.log(1)] | [r: math.log(1)] | ||
[h: e = math.e()] | [h: e = math.e()] | ||
[r: math.log(e)] | [r: math.log(e)] | ||
</ | </syntaxhighlight> | ||
Returns: | Returns: | ||
<pre> | <pre> | ||
Line 21: | Line 21: | ||
1.0 | 1.0 | ||
</pre> | </pre> | ||
|also= | |||
<code>[[math]]</code> | |||
}} | }} | ||
[[Category:Mathematical Function]] | [[Category:Mathematical Function]] | ||
[[Category:Logarithmic]] | [[Category:Logarithmic]] |
Latest revision as of 23:59, 14 March 2023
math.log() Function
• Introduced in version 1.3.b48 (estimate)
Find the natural logarithm of a number. A non-numeric argument will produce an error.
Usage
[h: result = math.log(num)]
Examples
[r: math.log(1)]
[h: e = math.e()]
[r: math.log(e)]
Returns:
0 1.0