MathGroup Archive 2006

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

Search the Archive

Re: delayed rule evaluation order

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67984] Re: delayed rule evaluation order
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Thu, 20 Jul 2006 06:04:18 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/19/06 at 5:21 AM, chris at chiasson.name (Chris Chiasson) wrote:

>Hold[{2, 3}] /. {{x_, y_} :> x^y}

>the result is Hold[Power[2,3]]

>I would like the result to be Hold[8]

You need to force evaluation of Power before doing Hold, i.e., something like

In[15]:=
{2,3}/.{{x_,y_}:>x^y}//Evaluate//Hold

Out[15]=
Hold[8]
--
To reply via email subtract one hundred and four


  • Prev by Date: line thickness 2D plot legend
  • Next by Date: InputForm changes the order of output?
  • Previous by thread: Re: delayed rule evaluation order
  • Next by thread: Re: delayed rule evaluation order