ln: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function ln== Returns the natural logarithm of a number. ===Usage=== <source lang="mtmacro" line> [h: val = ln(num)] </source> ===Examples=== <source lang="mt...) |
No edit summary |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
Returns the | |name=ln | ||
|version=1.3b36 | |||
|description= | |||
Returns the ''exponent'' that the ''irrational constant''(approx. {{code|2.718281828}}) would have to be raised to in order to equal the parameter. | |||
|usage= | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
ln(num) | |||
</ | </syntaxhighlight> | ||
'''Parameter''' | |||
* {{code|num}} - The {{code|number}} used with the ''irrational constant'' to calculate the ''exponent''. | |||
|example= | |||
'''Example 1''' | |||
<syntaxhighlight lang="mtmacro" line> | |||
[r: ln(5)] | |||
</syntaxhighlight> | |||
'''Returns:''' {{code|1.6094379124341002817999424223671667277812957763671875}} | |||
'''Example 2''' | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: ln( | [r: ln(23)] | ||
</ | </syntaxhighlight> | ||
Returns | '''Returns:''' {{code|3.13549421592914967504839296452701091766357421875}} | ||
|also= | |||
[[wp:Natural_logarithm|Natural logarithm]], [[power|power()]] | |||
}} | |||
[[Category:Mathematical Function]] |
Latest revision as of 23:59, 15 March 2023
ln() Function
• Introduced in version 1.3b36
Returns the exponent that the irrational constant(approx.
2.718281828
) would have to be raised to in order to equal the parameter.Usage
ln(num)
Parameter
num
- Thenumber
used with the irrational constant to calculate the exponent.
Example
Example 1
Returns:
[r: ln(5)]
Returns: 1.6094379124341002817999424223671667277812957763671875
Example 2
[r: ln(23)]
3.13549421592914967504839296452701091766357421875