Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2007

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

Search the Archive

Re: What is the precedence wrt Mathematica infix operators

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82831] Re: What is the precedence wrt Mathematica infix operators
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Thu, 1 Nov 2007 05:06:21 -0500 (EST)
  • References: <fg9om3$md1$1@smc.vnet.net>

congruentialuminaire at yahoo.com wrote:
> Hello Mathematica UG:
> 
> I cannot find operator precedence documented anywhere. With the
> operators from Fortran (in the old days) this was always clear, i.e
> '/' before '-'.
> 
> I have been reading some code in the Trott Guidebooks which has
> constructions like 'Head @@ face[[i]] / order'. I can guess that Part
> has precedence in this expression, but what about Apply vs. Times?
> 
> Looking at the OutputForm shows that Apply has precendence. But,...
> 
> - Is this documented somewhere?
> - Do all Mathematica operators take precedence over arithmetic operators?
> 

This is again proof that a hand-made book index can be much more useful 
than any kind of full-text search!

I found the relevant sections immediately in the Mathematica 5.2 help. 
It took me somewhat more time to look up the same sections in the v6 
documentation, even tough I know their title ... :

tutorial/TheSyntaxOfTheMathematicaLanguage
tutorial/InputSyntax (scroll down to Operator Input Forms)

-- 
Szabolcs


  • Prev by Date: Re: FindRoot and Bose-Einstein distribution
  • Next by Date: Re: What is the precedence wrt Mathematica infix operators
  • Previous by thread: Re: What is the precedence wrt Mathematica infix operators
  • Next by thread: Re: What is the precedence wrt Mathematica infix operators