powm {gmp} | R Documentation |
This function return x ^ y mod n
.
This function return x ^ y mod n
pow.bigz do the same when modulus is set.
powm(x, y, n)
x |
Integer or big integer - possibly a vector |
y |
Integer or big integer - possibly a vector |
n |
Integer or big integer - possibly a vector |
A bigz class representing the parameter value.
A. L.
powm(4,7,9)
x = as.bigz(4,9)
x ^ 7