Difference between revisions of "ApCoCoA:Fn.Ln"

From CoCoAWiki
(New page: <command> <title>Fn.Ln</title> <short_description>Returns the natural logarithm of a given value.</short_description> <syntax> Fn.Ln(X:RAT):RAT </syntax> <description> This function re...)
 
Line 27: Line 27:
 
<see>  Fn.GetAccuracy</see>
 
<see>  Fn.GetAccuracy</see>
 
<key>Fn.Ln</key>
 
<key>Fn.Ln</key>
<key>apcocoa/elemfns.Ln</key>
+
<key>elemfns.Ln</key>
 
<key>Ln</key>
 
<key>Ln</key>
 
<wiki-category>Package_elemfns</wiki-category>
 
<wiki-category>Package_elemfns</wiki-category>
 
</command>
 
</command>

Revision as of 16:11, 4 May 2011

Fn.Ln

Returns the natural logarithm of a given value.

Syntax

Fn.Ln(X:RAT):RAT

Description

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

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

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

Example

Fn.SetAccuracy(20);
R := Fn.Ln(5);
Dec(R, 40);

1.6094379124341003746
-------------------------------

ApCoCoA: Fn.LnN

ApCoCoA: Fn.Log

ApCoCoA: Fn.LogN

ApCoCoA: Fn.SetAccuracy

ApCoCoA: Fn.GetAccuracy