Difference between revisions of "ApCoCoA-1:Fn.RootN"
From ApCoCoAWiki
m (fixed links to namespace ApCoCoA) |
m (insert version info) |
||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
<title>Fn.RootN</title> | <title>Fn.RootN</title> |
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 -------------------------------