Re: Substitution ignored?

*To*: mathgroup at smc.vnet.net*Subject*: [mg48750] Re: Substitution ignored?*From*: "David W. Cantrell" <DWCantrell at sigmaxi.org>*Date*: Sat, 12 Jun 2004 23:33:39 -0400 (EDT)*References*: <cadvom$6ts$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

Jos R Bergervoet <Jos.Lastname at Companyname.com> wrote: > Dear MathGroup, > > Why is the following going wrong? > > f = x^2 > Plot[{ f, f /. x->x-1 }, {x,0,2}] (* Identical functions plotted!! *) Your two different functions can be plotted using Plot[Evaluate[{ f, f /. x -> x - 1 }], {x, 0, 2}] David > g = f /. x->x-1 > Plot[{f, g}, {x,0,2}] (* OK, different functions plotted *)