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

modularPower -- Compute the modular power.

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:

  • modularPower(ZZ,ZZ,ZZ)

For the programmer

The object modularPower is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Parametrization.m2:1471:0.