Difference between revisions of "ApCoCoA-1:Fn.LogN"
From ApCoCoAWiki
S schuster (talk | contribs) (New page: <command> <title>Fn.LogN</title> <short_description>Returns the logarithm to a given base with a given accuracy.</short_description> <syntax> Fn.LogN(Base:RAT,Val:RAT,Acc:INT):RAT </sy...) |
|||
Line 36: | Line 36: | ||
<see> Fn.GetAccuracy</see> | <see> Fn.GetAccuracy</see> | ||
<key>Fn.LogN</key> | <key>Fn.LogN</key> | ||
− | <key> | + | <key>elemfns.LogN</key> |
<key>LogN</key> | <key>LogN</key> | ||
<wiki-category>Package_elemfns</wiki-category> | <wiki-category>Package_elemfns</wiki-category> | ||
</command> | </command> |
Revision as of 14:14, 4 May 2011
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 -------------------------------