MathGroup Archive 2001

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

Search the Archive

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: <9pjgi4$3fr$1@smc.vnet.net>
  • 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




  • Prev by Date: Re: Is there an "inverse" of ToRules?
  • Next by Date: Re: exporting graph in pdf file
  • Previous by thread: Re: Is there an "inverse" of ToRules?
  • Next by thread: Re: exporting graph in pdf file