Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / Formatting Functions  /
Infix

  • Infix[ f [ , , ... ]] prints with f [ , , ... ] given in default infix form: ~ f ~ ~ f ~ ... .
  • Infix[ expr , h ] prints with arguments separated by h: h h ... .
  • Infix[ expr , h , precedence , grouping ] can be used to specify how the output form should be parenthesized.
  • Precedence levels are specified by integers. In OutputForm, some precedence levels are:
  • Possible grouping (associativity) specifications are:
  • See the Mathematica book: Section 2.8.16.
  • See also: Postfix, Prefix, PrecedenceForm.

    Further Examples

    This gives the infix form for a simple addition.

    In[1]:=

    Out[1]=

    Here is the infix notation for a function of three arguments.

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.