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

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



See Also