MathGroup Archive 2011

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

Search the Archive

Re: Just another Mathematica "Gotcha"

  • To: mathgroup at
  • Subject: [mg120787] Re: Just another Mathematica "Gotcha"
  • From: Simon <simonjtyler at>
  • Date: Thu, 11 Aug 2011 03:27:20 -0400 (EDT)
  • Delivered-to:
  • References: <j1r5d3$fi4$>
  • Reply-to: comp.soft-sys.math.mathematica at

To anyone that knows their operator precedence, the result is not a surprise at all. In your first version, the ReplaceAll is acting on the Normal operator, not the entire expression.

Basically, postfix (//) has the lowest precedence, so that you can chuck it at the end of any expression. This is good for things like //Simplify, //MatrixForm, etc...

  • Prev by Date: Re: ?
  • Next by Date: Re: Pattern in immediate definition
  • Previous by thread: Re: Just another Mathematica "Gotcha"
  • Next by thread: Re: Just another Mathematica "Gotcha"