Re: Just another Mathematica "Gotcha"
- To: mathgroup at smc.vnet.net
- Subject: [mg120812] Re: Just another Mathematica "Gotcha"
- From: Glenn Carlson <g.crlsn at gmail.com>
- Date: Thu, 11 Aug 2011 05:12:41 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
It seems not simply a matter of operator precedence since [7] evaluates to neither [3] nor [6]. In[1]:= Series[a + (b1 + b2) x, {x, 0, 1}]; % // Normal; % /. {b2 -> 0} Out[3]:= a+b1 x In[4]:= Series[a + (b1 + b2) x, {x, 0, 1}]; % /. {b2 -> 0}; % // Normal Out[6]:= a+b1 x In[7]:= Series[a + (b1 + b2) x, {x, 0, 1}] // Normal /. {b2 -> 0} Out[7]:= a + (b1+b2) x
- Follow-Ups:
- Re: Just another Mathematica "Gotcha"
- From: DrMajorBob <btreat1@austin.rr.com>
- Re: Just another Mathematica "Gotcha"
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: Just another Mathematica "Gotcha"