Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Fully qualified name: Std.Math.InverseModI
function InverseModI(a : Int, modulus : Int) : Int
Summary
Returns the multiplicative inverse of a modular integer.
Description
This will calculate the multiplicative inverse of a
modular integer b
such that a • b = 1 (mod modulus)
.