Re: Is there an "inverse" of ToRules?
- To: mathgroup at smc.vnet.net
- Subject: [mg31060] Re: Is there an "inverse" of ToRules?
- From: "John Jowett" <John.Jowett at cern.ch>
- Date: Sat, 6 Oct 2001 03:32:33 -0400 (EDT)
- Organization: CERN
- References: <firstname.lastname@example.org>
- Sender: owner-wri-mathgroup at wolfram.com
Mark, This is easy if you understand the structure of Mathematica expressions. Try evaluating myrule=(a->b) myeqn = Equal@@myrule (or Apply[Equal,myrule]) and you will have turned a rule into an equation. To understand it better, look at FullForm[myrule] FullForm[myeqn] to see that you just had to change the Head of the expression. I hope this helps, John Jowett My home page: http://home.cern.ch/jowett/ Postal address: SL Division, CERN, CH-1211 Geneva 23, Switzerland "Mark S. Coleman" <mcoleman at bondspace.com> wrote in message news:9pjgi4$3fr$1 at smc.vnet.net... > > Greetings, > > Is there an "inverse" to the ToRules function? That is, a function > that converts rules to equations (expressed in == form), which could > then be used in the Solve function? > > Thanks, > > Mark