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

From ApCoCoAWiki
(New page: <command> <title>Fn.RootN</title> <short_description>Returns the <tt>N</tt>-th root of a given value with a given accuracy.</short_description> <syntax> Fn.RootN(Val:RAT,N:INT,Acc:INT)...)
 
m (insert version info)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
{{Version|1}}
 
<command>
 
<command>
 
   <title>Fn.RootN</title>
 
   <title>Fn.RootN</title>
Line 11: Line 12:
 
<itemize>
 
<itemize>
 
<item>@param <em>Val</em> The value of which to take the <tt>N</tt>-th root.</item>
 
<item>@param <em>Val</em> The value of which to take the <tt>N</tt>-th root.</item>
<item>@param <em>N</em> The degrre of the root to be taken.</item>
+
<item>@param <em>N</em> The degree of the root to be taken.</item>
 
<item>@param <em>Acc</em> The desired accuracy.</item>
 
<item>@param <em>Acc</em> The desired accuracy.</item>
 
<item>@return Returns the <tt>N</tt>-th root of <tt>Val</tt> rounded to accuracy <tt>Acc</tt>.</item></itemize>
 
<item>@return Returns the <tt>N</tt>-th root of <tt>Val</tt> rounded to accuracy <tt>Acc</tt>.</item></itemize>
Line 39: Line 40:
 
</example>
 
</example>
 
</description>
 
</description>
<see> Fn.Root</see>
+
<see>ApCoCoA-1:Fn.Root|Fn.Root</see>
<see> Fn.Sqrt</see>
+
<see>ApCoCoA-1:Fn.Sqrt|Fn.Sqrt</see>
<see> Fn.SqrtN</see>
+
<see>ApCoCoA-1:Fn.SqrtN|Fn.SqrtN</see>
<see> Fn.SetAccuracy</see>
+
<see>ApCoCoA-1:Fn.SetAccuracy|Fn.SetAccuracy</see>
<see> Fn.GetAccuracy</see>
+
<see>ApCoCoA-1:Fn.GetAccuracy|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>ApCoCoA-1:Package_elemfns</wiki-category>
 
</command>
 
</command>

Latest revision as of 10:04, 7 October 2020

This article is about a function from ApCoCoA-1.

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