Macaulay2 » Documentation
Packages » Parametrization :: modularPower
next | previous | forward | backward | up | index | toc

modularPower -- Compute the modular power.

Synopsis

Description

Computes the b-th power of a in $\mathbb{Z}/p\mathbb{Z}$. This function is here to also deal with large p.

i1 : modularPower(8,10003,101)

o1 = 7

Ways to use modularPower :

For the programmer

The object modularPower is a method function.