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?
>
>