You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trac #33244: sage.arith.misc.power_mod() works in any ring with %, not just ZZ
The documentation of `power_mod()` in `sage/arith/misc.py` currently
says:
Return the `n`-th power of `a` modulo the integer `m`.
But the function actually works in any ring where `%` is defined! Let's
change the documentation to reflect this.
Also, some code tweaks while we're at it.
URL: https://trac.sagemath.org/33244
Reported by: lorenz
Ticket author(s): Lorenz Panny
Reviewer(s): Samuel Lelièvre, Frédéric Chapoton
0 commit comments