Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Simplify and Gather Terms in a Polynomial

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46445] Re: [mg46434] Simplify and Gather Terms in a Polynomial
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Thu, 19 Feb 2004 03:01:52 -0500 (EST)
  • References: <200402180536.AAA14436@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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