Learn R Programming

gmp (version 0.4-10)

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

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

See Also

gcd.bigz

Examples

Run this code
gcdex(342,654)

Run the code above in your browser using DataLab