MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Removing constant multiples from polynomials


Coefficient[poly, x*y,1] returns the coefficient of x*y in poly, so

In[1]:=
(#1/Coefficient[#1, x*y, 1] & )[1276*(x - 1)*((y - 2)/397)]

Out[1]=
(-1 + x)*(-2 + y)

should solve your problem.
Adriano Pascoletti


On 15 feb 2007, at 10:55, Azumanga wrote:

> I am working on an algorithm which manipulates sets of polynomials.
> Often it produces (after an application of FullSimplify) polynomials
> like:
>
> 1276(x-1)(y-2)/397
>
> I'm only interested in the solutions to the polynomial, so to me this
> is "equivalent" to:
>
> (x-1)(y-2)
>
> As a short-term solution I call "GroebnerBasis" on the single
> polynomial, which seems to perform this simplification. However is
> there a simpler method?
>
> Thank you,
>
> Chris
>
>



  • Prev by Date: Re: unistallation problem
  • Next by Date: Re: Logical Expression
  • Previous by thread: Re: Re: Removing constant multiples from polynomials
  • Next by thread: Re: Removing constant multiples from polynomials