ApCoCoA-1:Fn.Ln2: Difference between revisions

From ApCoCoAWiki
S schuster (talk | contribs)
New page: <command> <title>Fn.Ln2</title> <short_description>Compute the natural logarithm of 2.</short_description> <syntax> Fn.Ln2():RAT </syntax> <description> The function computes the natur...
 
S schuster (talk | contribs)
No edit summary
Line 1: Line 1:
<command>
<command>
   <title>Fn.Ln2</title>
   <title>Fn.Ln2</title>
   <short_description>Compute the natural logarithm of 2.</short_description>
   <short_description>Returns the natural logarithm of 2 rounded to the current global accuracy.</short_description>
<syntax>
<syntax>
Fn.Ln2():RAT
Fn.Ln2():RAT
</syntax>
</syntax>
<description>
<description>
The function computes the natural logarithm of 2 with the given global
accuracy.


<itemize>
<itemize>
<item>@param <em>Acc</em> The desired accuracy.</item>
<item>@param <em>Acc</em> The desired accuracy.</item>
<item>@return The natural logarithm of 2.</item></itemize>
<item>@return Returns the natural logarithm of 2.</item></itemize>
<example>
<example>
Fn.SetAccuracy(10);
Fn.SetAccuracy(10);
Line 19: Line 16:


0.6931471806
0.6931471806


</example>
</example>
</description>
</description>
<types>
<see> Fn.Ln2N</see>
<types>integer</types>
<see> Fn.SetAccuracy</see>
<types>rational</types>
<see>  Fn.GetAccuracy</see>
</types>
<key>Fn.Ln2</key>
<key>Fn.Ln2</key>
<key>apcocoa/elemfns.Ln2</key>
<key>apcocoa/elemfns.Ln2</key>

Revision as of 08:55, 4 May 2011

Fn.Ln2

Returns the natural logarithm of 2 rounded to the current global accuracy.

Syntax

Fn.Ln2():RAT

Description


  • @param Acc The desired accuracy.

  • @return Returns the natural logarithm of 2.

Example

Fn.SetAccuracy(10);
R := Fn.Ln2();
Dec(R, 15);

0.6931471806

Fn.Ln2N

Fn.SetAccuracy

Fn.GetAccuracy