Difference between revisions of "ApCoCoA-1:Fn.Log"
From ApCoCoAWiki
S schuster (talk | contribs) (New page: <command> <title>Fn.Log</title> <short_description>Returns the logarithm to a given base.</short_description> <syntax> Fn.Log(Base:RAT,X:RAT):RAT </syntax> <description> This function ...) |
m (insert version info) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
<title>Fn.Log</title> | <title>Fn.Log</title> | ||
Line 31: | Line 32: | ||
</example> | </example> | ||
</description> | </description> | ||
− | <see> | + | <see>ApCoCoA-1:Fn.LogN|Fn.LogN</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.Ln|Fn.Ln</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.LnN|Fn.LnN</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.SetAccuracy|Fn.SetAccuracy</see> |
− | <see> | + | <see>ApCoCoA-1:Fn.GetAccuracy|Fn.GetAccuracy</see> |
<key>Fn.Log</key> | <key>Fn.Log</key> | ||
− | <key> | + | <key>elemfns.Log</key> |
<key>Log</key> | <key>Log</key> | ||
− | <wiki-category>Package_elemfns</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_elemfns</wiki-category> |
</command> | </command> |
Latest revision as of 10:03, 7 October 2020
This article is about a function from ApCoCoA-1. |
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 -------------------------------