Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.



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


> Hold[z + 3] /. HoldPattern[z] > a > % // ReleaseHold
I would have thought this was the closest to what I would have called a "correct" answer since it actually uses hold and all the variables have their assigned values when the replacement takes place. I really think the most elegant way of doing it is the Unevaluated answer and the one that uses Block but neither uses Hold. Thanks  I guess HoldPattern is probably the magic I was looking for.



