powm: Exponentiation function

Description Usage Arguments Value Author(s) See Also Examples

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

1
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

Value

A bigz class representing the parameter value.

Author(s)

A. L.

See Also

pow.bigz

Examples

1
2
3
4
5
powm(4,7,9)


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


Search within the gmp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.