Re: how to get an assignment from a rule ?
- To: mathgroup at smc.vnet.net
- Subject: [mg29354] Re: [mg29315] how to get an assignment from a rule ?
- From: Carlos Collier <ccollier at tycho.fciencias.unam.mx>
- Date: Thu, 14 Jun 2001 02:27:29 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi
Just assign the result of the replacement to the variables you want
{a,c}={a,c}/.{a->b,c->d}
Carlos
On Wed, 13 Jun 2001, Guido Carlet wrote:
> Anybody knows how to do this in Mathematica ?
>
> I have a list of rules:
>
> {a->b, c->d}
>
> and I want to get the corresponding assignments:
>
> a = b
>
> c = d
>
> Is there a command in Mathematica to do this ?
>
> Thank you !
>
>
>
>
>