the long base
Find the n-th root of m, i.e., m ~^ (1/n) for scala Longs.
Find the n-th root of m, i.e., m ~^ (1/n) for scala Longs.
the root level
http://en.wikipedia.org/wiki/Shifting_nth_root_algorithm
Exponentiation operator for scala Longs (m ~^ n). Compute: "math.pow (m, n).toLong" without using floating point, so as to not lose precision.
Exponentiation operator for scala Longs (m ~^ n). Compute: "math.pow (m, n).toLong" without using floating point, so as to not lose precision.
the long exponent
The
LongWithExp
class defines an expontiation operator '~^' for Longs. To maintain 64 bit precision, no floating point operations are used.the long base