up previous next
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.

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
-------------------------------



See Also