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


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

Re: Just another Mathematica "Gotcha"

From Glenn Carlson <g.crlsn@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Just another Mathematica "Gotcha"
Date 2011-08-11 09:20 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j206sg$775$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

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


Thread

Re: Just another Mathematica "Gotcha" Glenn Carlson <g.crlsn@gmail.com> - 2011-08-11 09:20 +0000
  Re: Just another Mathematica "Gotcha" David Bailey <dave@removedbailey.co.uk> - 2011-08-11 11:56 +0000

csiph-web