Re: Forgets Variables?
- To: mathgroup at smc.vnet.net
- Subject: [mg97215] Re: Forgets Variables?
- From: Raffy <raffy at mac.com>
- Date: Sun, 8 Mar 2009 05:52:07 -0500 (EST)
- References: <got896$gg5$1@smc.vnet.net>
When t2 is defined, Mathematica is probably evaluating (and expanding) callNormValue. What you need to do is preserve the form of callNormValue (aka prevent evaluation) until you have all known values. Either, 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.