up previous next
StarRoot    --    compute smallest root of an integer


Syntax
StarRoot(N: INT): INT

Description
This function returns the smallest root of N; that is, it produces the smallest R such that N = R^k for some k. An error is reported if N < 0. Note that this is not the same as the radical or squarefree part of N.

Example
/**/  StarRoot(8000);
20

See Also