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: [mg82836] Re: What is the precedence wrt Mathematica infix operators
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Thu, 1 Nov 2007 05:08:56 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fg9om3$md1$1@smc.vnet.net>

congruentialuminaire at yahoo.com wrote:

> 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?

About operator precedences, there exists nothing better than the good 
old Mathematica Book!

The following section contains a long table listing the operators in 
order of decreasing precedence:

"A.2.7 Operator Input Forms"
http://documents.wolfram.com/mathematica/book/section-A.2.7

The following two (short) sections contain additional material, 
explanations and useful examples.

"2.1.3 Special Ways to Input Expressions"
http://documents.wolfram.com/mathematica/book/section-2.1.3

"2.9.16 Defining Output Formats"
http://documents.wolfram.com/mathematica/book/section-2.9.16

Regards,
-- 
Jean-Marc


  • Prev by Date: Re: What is the precedence wrt Mathematica infix operators
  • Next by Date: Re: Re: Easy Mapping problem that has me stumped!
  • Previous by thread: Re: What is the precedence wrt Mathematica infix operators
  • Next by thread: Re: What is the precedence wrt Mathematica infix operators