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

From ApCoCoAWiki
Line 45: Line 45:
 
<see>  Fn.GetAccuracy</see>
 
<see>  Fn.GetAccuracy</see>
 
<key>Fn.RootN</key>
 
<key>Fn.RootN</key>
<key>apcocoa/elemfns.RootN</key>
+
<key>elemfns.RootN</key>
 
<key>RootN</key>
 
<key>RootN</key>
 
<wiki-category>Package_elemfns</wiki-category>
 
<wiki-category>Package_elemfns</wiki-category>
 
</command>
 
</command>

Revision as of 14:19, 4 May 2011

Fn.RootN

Returns the N-th root of a given value with a given accuracy.

Syntax

Fn.RootN(Val:RAT,N:INT,Acc:INT):RAT

Description

This functions returns the N-th root of Val rounded

to the given accuracy Acc

  • @param Val The value of which to take the N-th root.

  • @param N The degree of the root to be taken.

  • @param Acc The desired accuracy.

  • @return Returns the N-th root of Val rounded to accuracy Acc.

Example

R := Fn.RootN(8, 3, 30);
Dec(R, 40);

2
-------------------------------

Example

R := Fn.RootN(-8, 3, 30);
Dec(R, 40);

-2
-------------------------------

Example

R := Fn.RootN(9, 3, 30);
Dec(R, 40);

2.080083823051904114530056824358
-------------------------------

Fn.Root

Fn.Sqrt

Fn.SqrtN

Fn.SetAccuracy

Fn.GetAccuracy