next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 website
Macaulay2Doc
::
gcdCoefficients
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
.