Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

Re: Question about Replace

  • To: mathgroup at
  • Subject: [mg35718] Re: Question about Replace
  • From: "Allan Hayes" <hay at>
  • Date: Sat, 27 Jul 2002 06:43:23 -0400 (EDT)
  • References: <> <ahr0mf$l20$>
  • Sender: owner-wri-mathgroup at

"Xuguang(Heather) Zhang" <xuguang_zhang at> wrote in message
news:ahr0mf$l20$1 at
> Hi, Bob,
> I tried ReplaceRepeated, however, I got the following answer:
> x+y+z/(x+y)+e^(x+y)+(w*x)+y//. x+y->x
> e^x+x+(w*x)+2y+z/x
> In fact, there is still one more (x+y) term if we rewritten the answer.
> is e^x+(x+y)+y+(w*x)+z/x. Do you know how to get rid of it? Thanks.


Use Simplify with the assumption x+y=x:

    Simplify[x + y + z/(x + y) + e^(x + y) + w*x + y, {x + y == x}]

        e^x + x + w*x + z/x

In other circumstances we may have to give more help Simplify (or
Please check possiblities in the Help Browser.


Allan Hayes
Mathematica Training and Consulting
Leicester UK
hay at
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

  • Prev by Date: Re: J/Link
  • Next by Date: Re: Input/output Problem
  • Previous by thread: Re: Question about Replace
  • Next by thread: RE: RE: Question about Replace