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 , b |
either integer, numeric, character string, or of class |
Value
a class "bigz"
vector of length 3 with (long integer) values
g, s, t
.
Author(s)
Antoine Lucas
References
The GNU MP Library, see https://gmplib.org
See Also
Examples
gcdex(342,654)
[Package gmp version 0.7-4 Index]