Re: A GCD question
- From: "sttscitrans@xxxxxxxxx" <sttscitrans@xxxxxxxxx>
- Date: Fri, 06 Jul 2007 19:33:31 -0700
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
.
- Follow-Ups:
- Re: A GCD question
- From: Jeremy Boden
- Re: A GCD question
- References:
- A GCD question
- From: Jeremy Boden
- Re: A GCD question
- From: amzoti
- Re: A GCD question
- From: Jeremy Boden
- A GCD question
- Prev by Date: Make Money Now!!!
- Next by Date: Re: disproof of Riemann hypothesis
- Previous by thread: Re: A GCD question
- Next by thread: Re: A GCD question
- Index(es):
Relevant Pages
|