VocabularymathInputsOutputsWord descriptionComputes the positive greatest common divisor 
d of 
x and 
y, and another value 
a satisfying:
(a*x - d) mod y == 0
NotesIf 
d is 1, then 
a is the inverse of 
x modulo 
y.
ExamplesUSING: kernel math prettyprint ;
54 26 gcd [ . ] bi@
1
2
USING: math prettyprint ;
54 1 * 2 - 26 mod .
0
Definition