Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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)

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

Examples

powm(4,7,9)


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

gmp

Multiple Precision Arithmetic

v0.6-2
GPL (>= 2)
Authors
Antoine Lucas, Immanuel Scholz, Rainer Boehme <rb-gmp@reflex-studio.de>, Sylvain Jasson <Sylvain.Jasson@inrae.fr>, Martin Maechler <maechler@stat.math.ethz.ch>
Initial release
2021-01-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.