MathGroup Archive 2001

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

Search the Archive

Re: how to get an assignment from a rule ?

  • To: mathgroup at
  • Subject: [mg29329] Re: how to get an assignment from a rule ?
  • From: "Kevin J. McCann" <KevinMcCann at>
  • Date: Thu, 14 Jun 2001 02:27:11 -0400 (EDT)
  • References: <9g7411$cf3$>
  • Sender: owner-wri-mathgroup at

Guido, I assume that what you would like is to have a=b and c=d. Here is a 


(* You have the following rule from something else *)


(*Now check to see that the assignment has been made *)
(*Mathematica should output {b,d} *)

To see why this works type
you will see something like this


when you typed rul/.Rule->Set, you changed the "Rule" in the above to "Set" 
that is you made the assignments.



The wise words of Guido Carlet on Wednesday 13 June 2001 03:16:

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

  • Prev by Date: RE: Curve fitting
  • Next by Date: RE: frameticks without numbers
  • Previous by thread: Re: how to get an assignment from a rule ?
  • Next by thread: Curve fitting