MathGroup Archive 2006

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

Search the Archive

Re: delayed rule evaluation order

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67988] Re: [mg67967] delayed rule evaluation order
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 20 Jul 2006 06:04:25 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

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

Hold[8]


Bob Hanlon

---- Chris Chiasson <chris at chiasson.name> wrote: 
> Hold[{2, 3}] /. {{x_, y_} :> x^y}
> 
> the result is Hold[Power[2,3]]
> 
> I would like the result to be Hold[8]
> 
> The original context is post-processing of a large Trace output (via
> SetPrecision to get rid of digits and improve readability).
> 
> Any ideas?
> 
> -- 
> http://chris.chiasson.name/
> 

--

Bob Hanlon
hanlonr at cox.net



  • Prev by Date: MapThread and If
  • Next by Date: Wolfram Workbench
  • Previous by thread: Re: delayed rule evaluation order
  • Next by thread: Re: delayed rule evaluation order