Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Mathematical Typesetting > Symbolic Notational Forms >

PrecedenceForm

PrecedenceForm[expr, prec]
prints with expr parenthesized as it would be if it contained an operator with precedence prec.
  • prec must be an integer. See notes for Infix.
  • PrecedenceForm acts as a "wrapper", which affects printing, but not evaluation.
Force parenthesization by lowering the effective precedence of multiplication:
Force parenthesization by lowering the effective precedence of multiplication:
In[1]:=
Click for copyable input
Out[1]=
Define an operator |> using Infix:
Give the operator precedence higher than Plus but lower than Times:
Give the operator precedence higher than both Plus and Times:
Give the operator lowest precedence:
New in 1
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team