This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 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]=