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

From ApCoCoAWiki
m (Bot: Category moved)
m (insert version info)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
{{Version|1}}
 
<command>
 
<command>
 
   <title>Fn.LogN</title>
 
   <title>Fn.LogN</title>
Line 30: Line 31:
 
</example>
 
</example>
 
</description>
 
</description>
<see>Fn.Log</see>
+
<see>ApCoCoA-1:Fn.Log|Fn.Log</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.LogN</key>
 
<key>Fn.LogN</key>
 
<key>elemfns.LogN</key>
 
<key>elemfns.LogN</key>

Latest revision as of 10:03, 7 October 2020

This article is about a function from ApCoCoA-1.

Fn.LogN

Returns the logarithm to a given base with a given accuracy.

Syntax

Fn.LogN(Base:RAT,Val:RAT,Acc:INT):RAT

Description

This function returns the logarithm of Val to the base Base rounded to the given accuracy Acc.

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

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

  • @param Acc The desired accuracy.

  • @return The logarithm of Val to the base Base rounded to accuracy Acc.

Example

R := Fn.LogN(3,27, 30);
Dec(R, 40);

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

Example

R := Fn.LogN(2,10, 30);
Dec(R, 40);

3.321928094887362347870319429489
-------------------------------

Fn.Log

Fn.Ln

Fn.LnN

Fn.SetAccuracy

Fn.GetAccuracy