Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14180

Re: "Programming With Mathematica" Exercise help

From plank.in.sequim@gmail.com
Newsgroups comp.soft-sys.math.mathematica
Subject Re: "Programming With Mathematica" Exercise help
Date 2013-04-14 00:36 +0000
Message-ID <kkctm0$7el$1@smc.vnet.net> (permalink)
References <kk5r6r$ric$1@smc.vnet.net> <kkasd1$ril$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


> 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.

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

"Programming With Mathematica" Exercise help plank.in.sequim@gmail.com - 2013-04-11 08:11 +0000
  Re: "Programming With Mathematica" Exercise help Peter Pein <petsie@dordos.net> - 2013-04-12 06:16 +0000
    Re: "Programming With Mathematica" Exercise help plank.in.sequim@gmail.com - 2013-04-14 00:36 +0000
  Re: "Programming With Mathematica" Exercise help spamslayer19@gmail.com - 2013-04-12 06:15 +0000
  Re: "Programming With Mathematica" Exercise help drallenbio@gmail.com - 2013-04-12 06:15 +0000
    Re: "Programming With Mathematica" Exercise help plank.in.sequim@gmail.com - 2013-04-14 00:36 +0000
  Re: "Programming With Mathematica" Exercise help Roland Franzius <roland.franzius@uos.de> - 2013-04-13 06:02 +0000
    Re: "Programming With Mathematica" Exercise help plank.in.sequim@gmail.com - 2013-04-14 00:36 +0000
  Re: "Programming With Mathematica" Exercise help plank.in.sequim@gmail.com - 2013-04-14 00:36 +0000

csiph-web