[Date Index] [Thread Index] [Author Index]
Re: Simplify and Gather Terms in a Polynomial
Manipulating an expression from one form to another is always tricky in Mathematica. But here is my suggestion for this case In:= x*Expand[Simplify[y*(x+x^2)/x]] Out= x (y+x y) This is clearly an odd way to do it and only works for this specific case. Perhaps some of the gurus know a more generally applicable approach. In my opinion Mathematica is not really designed to transform one form to another. If I want to check whether two forms are equivalent, I subtract them and use Simplify or FullSimplify to confirm that their difference equals 0. Sometimes it is necessary to apply things like Expand, PowerExpand, etc. as intermediate steps. Adam Smith sabrinacasagrande at hotmail.com (sabbri) wrote in message news:<c0uu2k$e74$1 at smc.vnet.net>... > 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?