Difference between revisions of "ApCoCoA-1:Fn.Log"

From ApCoCoAWiki
m (Bot: Category moved)
m (fixed links to namespace ApCoCoA)
Line 31: Line 31:
 
</example>
 
</example>
 
</description>
 
</description>
<see>Fn.LogN</see>
+
<see>ApCoCoA-1:Fn.LogN|Fn.LogN</see>
<see>Fn.Ln</see>
+
<see>ApCoCoA-1:Fn.Ln|Fn.Ln</see>
<see>Fn.LnN</see>
+
<see>ApCoCoA-1:Fn.LnN|Fn.LnN</see>
<see>Fn.SetAccuracy</see>
+
<see>ApCoCoA-1:Fn.SetAccuracy|Fn.SetAccuracy</see>
<see>Fn.GetAccuracy</see>
+
<see>ApCoCoA-1:Fn.GetAccuracy|Fn.GetAccuracy</see>
 
<key>Fn.Log</key>
 
<key>Fn.Log</key>
 
<key>elemfns.Log</key>
 
<key>elemfns.Log</key>

Revision as of 08:14, 7 October 2020

Fn.Log

Returns the logarithm to a given base.

Syntax

Fn.Log(Base:RAT,X:RAT):RAT

Description

This function returns the logarithm of X to the base Base rounded to the current global accuracy.

  • @param Base The base to which to compute the logarithm.

  • @param X The value of which to compute the logarithm.

  • @return The logarithm of X to the base Base rounded to the current global accuracy.

Example

Fn.SetAccuracy(20);
R := Fn.Log(3,27);
Dec(R, 40);

3
-------------------------------

Example

Fn.SetAccuracy(20);
R := Fn.Log(2,10);
Dec(R, 40);

3.32192809488736234787
-------------------------------

Fn.LogN

Fn.Ln

Fn.LnN

Fn.SetAccuracy

Fn.GetAccuracy