Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Gmp
Gmp.mpz

Method Gmp.mpz()->invert()


Method invert

Gmp.mpz invert(int|float|Gmp.mpz x)

Description

Return the inverse of this mpz value modulo x . The returned value satisfies 0 <= result < x.

Throws

An error is thrown if no inverse exists.