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: [mg29345] Re: [mg29315] how to get an assignment from a rule ?
  • From: BobHanlon at aol.com
  • Date: Thu, 14 Jun 2001 02:27:23 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 2001/6/13 3:44:53 AM, carlet at sissa.it writes:

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

rules = {a -> b, c -> d};

{a, c} = {a,c} /. rules

{b, d}


Bob Hanlon
Chantilly, VA  USA


  • Prev by Date: Re: looking inside FindMininum
  • Next by Date: Re: Replacing elements in matrix.
  • Previous by thread: how to get an assignment from a rule ?
  • Next by thread: Re: how to get an assignment from a rule ?