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


Groups > comp.soft-sys.math.mathematica > #4345 > unrolled thread

Re: Just another Mathematica "Gotcha"

Started bygac <g.crlsn@gmail.com>
First post2011-08-12 09:10 +0000
Last post2011-08-12 09:10 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Just another Mathematica "Gotcha" gac <g.crlsn@gmail.com> - 2011-08-12 09:10 +0000

#4345 — Re: Just another Mathematica "Gotcha"

Fromgac <g.crlsn@gmail.com>
Date2011-08-12 09:10 +0000
SubjectRe: Just another Mathematica "Gotcha"
Message-ID<j22qlq$grr$1@smc.vnet.net>
I think I see. If I compare your output with that for the other form: 

In[1]:= FullForm[Hold[
  Series[a + (b1 + b2) x, {x, 0, 1}] /. {b2 -> 0} // Normal]]

Out[1]/FullForm= Hold[Normal[ReplaceAll[Series[Plus[a,Times[Plus[b1,b2],x]],List[x,0,1]],List[Rule[b2,0]]]]]

Normal acts only after ReplaceAll applies the List to the Series, yes?

Someone suggested only using //-type operations at the end of statement, e.g., // Normal, // MatrixForm, // TraditionalForm, etc.  I think this is a good idea.  I've been doing this without having a good reason (except that "form follows function" ^_^ ).  Now, it seems that I have a stronger reason.

Thanks.

Glenn

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web