MathGroup Archive 2002

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

Search the Archive

AW: Question about Replace

  • To: mathgroup at
  • Subject: [mg35691] AW: [mg35670] Question about Replace
  • From: Matthias.Bode at
  • Date: Fri, 26 Jul 2002 04:16:34 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Hello Heather,

there is a simple way, try:


It works here; the intermediate substitution "s" was made to see it at a

Best regards,

Matthias Bode

-----Ursprüngliche Nachricht-----
Von: xzhang2 at [mailto:xzhang2 at]
Gesendet: Donnerstag, 25. Juli 2002 10:46
An: mathgroup at
Betreff: [mg35670] Question about Replace

Hello All,

I have an expression: x+y+z/(x+y)+e^(x+y)+w*x+y.... I want to replace
any (x+y) term by x no matter how the expression looks like.  I tried
"/."command. However, it does not work properly. Is there any simple way
of doing this? Thanks.  

Xuguang(Heather) Zhang 

  • Prev by Date: RE: Question about Replace
  • Next by Date: Re: MINLP and MILP optimization package
  • Previous by thread: Re: Input/output Problem
  • Next by thread: Re: Orientation of BarChart labels