MathGroup Archive 2002

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

Search the Archive

Re: Question about Replace

  • To: mathgroup at smc.vnet.net
  • Subject: [mg35688] Re: Question about Replace
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 26 Jul 2002 04:16:29 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <ahoecs$bta$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

what's wrong with

In[]:=x + y + z/(x + y) + e^(x + y) + w*x + y /. (x + y) -> q

Out[]=e^q + x + w*x + 2*y + z/q

??
Regards
  Jens

Xuguang Zhang wrote:
> 
> 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: A faster alternative to ListIntegrate?
  • Next by Date: RE: Question about Replace
  • Previous by thread: Re: Question about Replace
  • Next by thread: RE: Question about Replace