MathGroup Archive 2007

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

Search the Archive

Re: Replacement question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74208] Re: Replacement question
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 14 Mar 2007 03:52:44 -0500 (EST)
  • References: <et5nnh$jhk$1@smc.vnet.net>


Hi Brian,

this works, but what is matched is the FullForm and not what you see. 

Therefore, look at your expression using FullForm.

Daniel





Brian Beckage wrote:

> I apologize for this very basic question.  I understand how to use /. 

> {} to replace a  variable with a more complex expression, e.g., x-> 

> y+z.  Can one move in the opposite direction to replace all 

> occurrences of y+z with x?   myExpression/.{y+z->x} does not seem to 

> work.

> 

> Thank you for your help,

> Brian

> 

> 

> 




  • Prev by Date: Re: Weird Print Result
  • Next by Date: Re: draw question 2 (cusp-like curve)
  • Previous by thread: Replacement question
  • Next by thread: Re: Replacement question