Log

Revision as of 23:30, 27 October 2022 by Lchrisman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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

Comments


You are not allowed to post comments.