comp • gb.gmp • bigint • invm

BigInt.InvM (gb.gmp)

Function InvM ( Mod As BigInt ) As BigInt

Compute the inverse modulo Mod and return the result.

If the inverse exists, the return value R is non-zero and it will satisfy 0 < R < Abs(Mod).

If an inverse doesn't exist the return value is undefined.

The behaviour of this function is undefined when Mod is zero.