next up previous contents index
Next: random Up: IntegerType Previous: next,prev   Contents   Index


nthRoot


Usage

nthRoot(a, b)


Signature

nthRoot: (%,%) $\to$ (Boolean,%)


Parameter Type Description
a % an integer
b % a positive integer


Returns

Returns (found?, n) such that $a = n^b$ if found? is true. Otherwise, found? is false and

\begin{displaymath}
n^b < a < (n+1)^b\,.
\end{displaymath}



Manuel Bronstein 2004-06-28