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

From ApCoCoAWiki
m (Bot: Category moved)
m (insert version info)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
{{Version|1}}
 
<command>
 
<command>
 
   <title>Fn.Root</title>
 
   <title>Fn.Root</title>
Line 41: Line 42:
 
</example>
 
</example>
 
</description>
 
</description>
<see>Fn.RootN</see>
+
<see>ApCoCoA-1:Fn.RootN|Fn.RootN</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.Root</key>
 
<key>Fn.Root</key>
 
<key>elemfns.Root</key>
 
<key>elemfns.Root</key>

Latest revision as of 10:04, 7 October 2020

This article is about a function from ApCoCoA-1.

Fn.Root

Returns the N-th root of a given value.

Syntax

Fn.Root(X:RAT,N:INT):RAT

Description

This funcion returns the N-th root of X rounded to

the current global accuracy.

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

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

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

Example

Fn.SetAccuracy(20);
R := Fn.Root(8, 3);
Dec(R, 40);

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

Example

Fn.SetAccuracy(20);
R := Fn.Root(-8, 3);
Dec(R, 40);

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

Example

Fn.SetAccuracy(20);
R := Fn.Root(9, 3);
Dec(R, 40);

2.08008382305190411453
-------------------------------

Fn.RootN

Fn.Sqrt

Fn.SqrtN

Fn.SetAccuracy

Fn.GetAccuracy