MathGroup Archive 2009

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

Search the Archive

Re: Forgets Variables?

  • To: mathgroup at
  • Subject: [mg97215] Re: Forgets Variables?
  • From: Raffy <raffy at>
  • Date: Sun, 8 Mar 2009 05:52:07 -0500 (EST)
  • References: <got896$gg5$>

When t2 is defined, Mathematica is probably evaluating (and expanding)

What you need to do is preserve the form of callNormValue (aka prevent
evaluation) until you have all known values.


1. Wrap callNormValue in a Hold statement.  Then perform the
replacement, and call ReleaseHold.

held = Hold[ 3 + 9x ];
ReleaseHold[ held /. {x->2} ]

2. Make callNormValue a function.

  • Prev by Date: Re: Re: typsetting bug still present in Mathematica 7.01
  • Next by Date: Re: When a string does not match itself
  • Previous by thread: Re: Forgets Variables?
  • Next by thread: String substitution system