Learn R Programming

gmp (version 0.1)

gcdex: 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

  • gInteger
  • sInteger
  • tInteger

References

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

See Also

gcd

Examples

Run this code
gcdex(342,654)

Run the code above in your browser using DataLab