Learn R Programming

gmp (version 0.5-4)

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,b
Either integer, numeric or string value (String value: ither starting with 0x for hexadecimal, 0b for binary or without prefix for decimal values.) Or an element of class bigz.

Value

  • 3 values:
  • g,s,tElements of class bigz

References

The GNU MP Library, see http://gmplib.org

See Also

gcd.bigz

Examples

Run this code
gcdex(342,654)

Run the code above in your browser using DataLab