powm {gmp}R Documentation

Exponentiation function

Description

This function return x ^ y mod n

Usage

powm(x, y, n)

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

Details

This function return x ^ y mod n

pow.bigz do the same when modulus is set.

Value

A bigz class representing the parameter value.

Author(s)

A. L.

See Also

pow.bigz

Examples

powm(4,7,9)

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


[Package gmp version 0.4-10 Index]