Learn R Programming

gmp (version 0.7-5)

powm: Exponentiation function

Description

This function return \(x ^ y mod n\).

This function return \(x ^ y mod n\) pow.bigz do the same when modulus is set.

Usage

powm(x, y, n)

Value

A bigz class representing the parameter value.

Arguments

x

Integer or big integer - possibly a vector

y

Integer or big integer - possibly a vector

n

Integer or big integer - possibly a vector

Author

A. L.

See Also

pow.bigz

Examples

Run this code
powm(4,7,9)


x = as.bigz(4,9)
x ^ 7

Run the code above in your browser using DataLab