MathGroup Archive 2001

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

Search the Archive

Re: how to get an assignment from a rule ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29324] Re: how to get an assignment from a rule ?
  • From: Erk Jensen <Erk.Jensen at cern.ch>
  • Date: Thu, 14 Jun 2001 02:27:08 -0400 (EDT)
  • Organization: CERN http://www.cern.ch
  • References: <9g7411$cf3$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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 !

{a,c}={a,c} /. {a->b,c->d}

Ciao
   -erk-
-- 
 Dr.-Ing. Erk JENSEN                    mailto:Erk.Jensen at cern.ch
 CERN  PS/RF  L19510          http://jensene.home.cern.ch/jensene
 CH-1211 Geneva 23                      Tel.:     +41 22 76 74298
 Switzerland                            Fax.:     +41 22 76 78510


  • Prev by Date: Re: export & import an expr
  • Next by Date: AW: display factored form
  • Previous by thread: Re: how to get an assignment from a rule ?
  • Next by thread: Re: how to get an assignment from a rule ?