MathGroup Archive 2007

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

Search the Archive

Re: ReplaceAll question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82539] Re: ReplaceAll question
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 24 Oct 2007 04:25:14 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <ffkf46$sh6$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

because b is evaluated in b->c and gives 3 -> c
and there is no 3 in your expression.
Regards
   Jens

Yaroslav Bulatov wrote:
> b = 3;
> Hold[a[[b]]] /. {b -> c}
> 
> ReplaceAll has no effect, why? What is the recommended way of carrying
> out the replacement above?
> 
> 


  • Prev by Date: Re: ReplaceAll question
  • Next by Date: graph plotter
  • Previous by thread: Re: ReplaceAll question
  • Next by thread: Re: ReplaceAll question