gcdex {gmp}R Documentation

Compute Bezoult coefficient

Description

Compute g,s,t as as + bt = g = gcd(a,b). s and t are also known as Bezoult coefficients.

Usage

gcdex(a, b)

Arguments

a Integer or string from an integer
b Integer or string from an integer

Value

g Integer
s Integer
t Integer

Author(s)

Antoine Lucas

References

Gnu MP Library see http://swox.com/gmp

See Also

gcd.bigz

Examples

gcdex(342,654)


[Package gmp version 0.3-3 Index]