Re: substitution within a substitution list
- To: mathgroup at smc.vnet.net
- Subject: [mg88571] Re: substitution within a substitution list
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Fri, 9 May 2008 03:21:30 -0400 (EDT)
- Organization: Uni Leipzig
- References: <fvudmu$ebg$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
subs /. (b -> _) :> (b -> 2^6)
??
Regards
Jens
Bipin wrote:
> HI,
>
> I'm trying to find a way of changing the substitution values within a
> substitution list.
>
> For example, if I have the following substitution list:-
>
> subs = {a->1, b->2, c->2}
>
> I want to programmatically replace the value associated with 'b' from
> 2 to 20, ie ending up with
>
> subs = {a->1, b->20, c->2}
>
> Does anyone know of a mathematica function for doing this?
>
> Bipin.
>