
Re: "Programming With Mathematica" Exercise help
Posted:
Apr 13, 2013 8:36 PM


> In order to block evaluation during input use "Unevaluated" > > z = 11; > a = 9; > Unevaluated[z + 3] /. z > a
This seems closest in spirit to what I thought the answer was meant to be. I had to put a HoldPattern on the z in the right half of the substitution or it would evaluate to 11 and so end up as 11>a. Nice, though, because it didn't require the ReleaseHold.

