Macaulay2
»
Documentation
Packages
»
Macaulay2Doc
::
gcdCoefficients
next
|
previous
|
forward
|
backward
| up |
index
|
toc
gcdCoefficients -- gcd with coefficients
Description
gcdCoefficients(a,b)
-- returns
{d,r,s}
so that
a*r + b*s
is the greatest common divisor
d
of
a
and
b
.
Works for integers or elements of polynomial rings in onve variable.
See also
gcd
-- greatest common divisor
Ways to use
gcdCoefficients
:
gcdCoefficients(RingElement,RingElement)
gcdCoefficients(ZZ,ZZ)
For the programmer
The object
gcdCoefficients
is
a
method function
.