MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Just another Mathematica "Gotcha"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120837] Re: Just another Mathematica "Gotcha"
  • From: gac <g.crlsn at gmail.com>
  • Date: Fri, 12 Aug 2011 05:05:46 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

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




  • Prev by Date: Re: FunctionInterpolation and NIntegrate
  • Next by Date: Re: work?
  • Previous by thread: Re: Just another Mathematica "Gotcha"
  • Next by thread: Re: Just another Mathematica "Gotcha"