0
$\begingroup$

This question already has an answer here:

How to convert the expression '{a->a0, b->b0}' to the expression 'a=a0; b=b0'? I think this is a common question and do not know if someone has asked it before. Any help or suggestion will be appreiated!

$\endgroup$

marked as duplicate by rm -rf Jan 2 '14 at 3:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ @Nasser Thanks! I update the question. $\endgroup$ – Eden Harder Jan 2 '14 at 2:40
  • $\begingroup$ It think this is arguably a duplicate of: mathematica.stackexchange.com/q/6669/121 -- if this question is closed I will delete my answer below. $\endgroup$ – Mr.Wizard Jan 2 '14 at 3:10
  • $\begingroup$ @Mr.Wizard You're welcome :D :D $\endgroup$ – rm -rf Jan 2 '14 at 3:30
  • $\begingroup$ You can Apply Set at level one: Set @@@ {a -> a0, b -> b0} $\endgroup$ – Mr.Wizard Jan 2 '14 at 5:53
1
$\begingroup$

If you do

r = {a -> a0, b -> b0}
r /. Rule -> Set

Then now a and b will be set automatically

Mathematica graphics

You will not see the a=a0, since this is done on the fly, and M will assign a to a0.

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.