MathGroup Archive 2004

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

Search the Archive

Re: Simplify and Gather Terms in a Polynomial


On 18 Feb 2004, at 06:36, sabbri wrote:

> I have two equivalent polynomial expressions. In the second, which
> should derive from the first, terms are gathered respecting to a
> particular variable. for example:
>  y(x+ x^2)
> I want to make it gathered for x
> x(y+yx)
> How can I give this command?
>
>
>

Probably the simplest way is:

<<Algebra`Horner`

Horner[y*(x + x^2), x]

x*(x*y + y)

You can also do this using PolynomialReduce:


x*PolynomialReduce[y*(x + x^2), x][[1,1]]


x*(x*y + y)


Andrzej Kozlowski
Chiba, Japan
http://www.mimuw.edu.pl/~akoz/


  • Prev by Date: conerting integer to string
  • Next by Date: permutations?
  • Previous by thread: Simplify and Gather Terms in a Polynomial
  • Next by thread: Re: Simplify and Gather Terms in a Polynomial