W64.mpow: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/src/math/w64.bend as W64 Lines 640-642 of bend-collections-laws-math@1.0.0.0/src/math/w64.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/src/math/w64.bend&start_line=640&end_line=642 import Base import bend-collections-laws-math@1.0.0.0/src/math/u64.bend as W # b^e mod m for b < m and mont_ok(m) def mpow(+b: W.U64, +e: W.U64, +m: W.U64) -> W.U64: mpow_m(b, e, m, minv(m)) Uses (3): https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/u64.bend&name=U64 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/w64.bend&name=minv https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/w64.bend&name=mpow_m