Difference between revisions of "ApCoCoA-1:Fn.Root"
From ApCoCoAWiki
m (Bot: Category moved) |
|||
Line 49: | Line 49: | ||
<key>elemfns.Root</key> | <key>elemfns.Root</key> | ||
<key>Root</key> | <key>Root</key> | ||
− | <wiki-category>Package_elemfns</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_elemfns</wiki-category> |
</command> | </command> |
Revision as of 16:11, 2 October 2020
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 -------------------------------