pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]
Gmp
Gmp.mpz

Gmp.mpz()->gcdext()


Method gcdext

array(Gmp.mpz) gcdext(int|float|Gmp.mpz x)

Description

Compute the greatest common divisor between this mpz object and x . An array ({g,s,t}) is returned where g is the greatest common divisor, and s and t are the coefficients that satisfies

this * s + x * t = g

See also

gcdext2 , gcd

Module reference for Pike v7.8 release 116, 2008-12-31