Re: A GCD question
- From: Jeremy Boden <JeremyBoden@xxxxxxxxx>
- Date: Sat, 07 Jul 2007 05:45:09 -0700
On 7 Jul, 03:33, "sttscitr...@xxxxxxxxx" <sttscitr...@xxxxxxxxx>
wrote:
On 7 Jul, 02:34, Jeremy Boden <JeremyBo...@xxxxxxxxx> wrote:
On 6 Jul, 23:48, amzoti <amz...@xxxxxxxxx> wrote:
On Jul 6, 3:34 pm, Jeremy Boden <JeremyBo...@xxxxxxxxx> wrote:
I know it's easy to find the GCD of two integers using Euclid's
algorithm;
it's not much more difficult to find the GCD if two polynomials in a
similiar way.
But is it possible to do this for a multinomial?
I've been trying and failing to simplify
GCD(x + y, x^2 -x*y + y^2) - is this doomed to fail?
Regards,
Jeremy
Yes - it is possible.
Mathematica has a PolynomialGCD[x + y, x^2 -x*y + y^2] that returns 1
as the result.
Also see:http://icm.mcs.kent.edu/research/gcddemo.html
For a reference:
Three New Algorithms for Multivariate Polynomial GCD
T. Sasaki, M. Suzuki
Journal Title: Journal of Symbolic Computation
Date: 1992
Volume: 13
Issue: 4
p. 395 - 412
HTH - A
Thanks for that - I see the web sitehttp://icm.mcs.kent.edu/cgi-bin/icm.demo
uses Maxima (to obtain the same result).
If I substitute specific values for x & y that I can obtain different
results for the GCD.
E.g. let x=1, y=2
GCD(1+2, 1^2 - 1*2 + 2^2) = GCD(3,3) = 3
Clearly a GCD of a multinomial (or polynomial) will not necessarily
tell me anything about a GCD using specific numeric values.
GCD(x + y, x^2 -x*y + y^2) =
GCD(x + y, (x+y)^2-3xy) =
GCD(x + y, -3xy)
So "numericlly", the only common divisors are -1,1,3,-3
So the GCD is 3. The only polynomial CDs are units
I did some of that earlier - but it doesn't follow that
GCD(x + y, -3xy) = 1 or 3 because A|(A^2 + 3B)does not imply that A|3B
Yet another example:-
x=4, y=2 then
GCD(x+y,x^2 -x*y + y^2) = GCD(6,16 -8 + 4) = GCD(6,12) = 6
However, if we impose the restriction that GCD(x,y) = 1
then x*y has no divisors (other than x or y)
Hence 3xy only has divisors of 3, x or y.
(x + y) is not divisible by x or y (trivial cases ignored),
Hence GCD(x + y, x^2 -x*y + y^2) = 1 or 3
Thanks for pointing out that
GCD(x + y, (x+y)^2-3xy) = GCD(x + y, -3xy) = 1 or 3
Shame about the GCD(polynomials) - it appears that this is "usually"
the unit.
Regards,
Jeremy
.
- Follow-Ups:
- Re: A GCD question
- From: sttscitrans@xxxxxxxxx
- Re: A GCD question
- References:
- A GCD question
- From: Jeremy Boden
- Re: A GCD question
- From: amzoti
- Re: A GCD question
- From: Jeremy Boden
- Re: A GCD question
- From: sttscitrans@xxxxxxxxx
- A GCD question
- Prev by Date: Re: Dedekind cut definition question
- Next by Date: Re: limit of a sequence
- Previous by thread: Re: A GCD question
- Next by thread: Re: A GCD question
- Index(es):
Relevant Pages
|