Difference between revisions of "Log"
(Redirected page to Ln) |
|||
Line 1: | Line 1: | ||
− | + | [[Category:Math Functions]] | |
+ | [[Category:Functions that operate on complex numbers]] | ||
+ | |||
+ | ''New to [[Analytica 6.3]]'' | ||
+ | |||
+ | == Log( x'', base'' ) == | ||
+ | The logarithm with a given base. The result is the value <math>y</math> so that <math>base^y = x</math>. | ||
+ | |||
+ | For example, <code>Log(x,2)</code> is the base-2 logarithm <math>\log_2(x)</math>. | ||
+ | |||
+ | When «base» is omitted, returns the natural logarithm, identical to <code>[[Ln]](x)</code>. | ||
+ | |||
+ | <code>Log(x, 10)</code> is the same as <code>Logten(x)</code>. | ||
+ | |||
+ | «x» must be non-negative when [[EnableComplexNumbers|complex numbers are not enabled]] or a warning will be issued. If the warning is ignored, or [[Preferences|Show Result Warnings]] is off, the result is [[NaN]]. When [[EnableComplexNumbers|complex numbers are enabled]], a negative «x» results in a complex number. | ||
+ | |||
+ | == Log(x+1, base) == | ||
+ | When called with a parameter having the form <code>«expr» + 1</code> or <code>1 + «expr»</code>, it transforms the call to be a call to <code>_Log1p(x,base)</code> so as to avoid unnecessary numeric round-off. [[Ln]] and [[Logten]] do the same. | ||
+ | |||
+ | == See also == | ||
+ | * [[Ln]](x) -- natural logarithm, same as <code>[[Log]](x)</code> with base omitted. | ||
+ | * [[Logten]](x) -- Same as <code>[[Log]](x,10)</code> | ||
+ | * [[ProductLog]] |
Latest revision as of 23:30, 27 October 2022
New to Analytica 6.3
Log( x, base )
The logarithm with a given base. The result is the value [math]\displaystyle{ y }[/math] so that [math]\displaystyle{ base^y = x }[/math].
For example, Log(x,2)
is the base-2 logarithm [math]\displaystyle{ \log_2(x) }[/math].
When «base» is omitted, returns the natural logarithm, identical to Ln(x)
.
Log(x, 10)
is the same as Logten(x)
.
«x» must be non-negative when complex numbers are not enabled or a warning will be issued. If the warning is ignored, or Show Result Warnings is off, the result is NaN. When complex numbers are enabled, a negative «x» results in a complex number.
Log(x+1, base)
When called with a parameter having the form «expr» + 1
or 1 + «expr»
, it transforms the call to be a call to _Log1p(x,base)
so as to avoid unnecessary numeric round-off. Ln and Logten do the same.
See also
- Ln(x) -- natural logarithm, same as
Log(x)
with base omitted. - Logten(x) -- Same as
Log(x,10)
- ProductLog
Enable comment auto-refresher