Infix

Infix[f[e1,e2,]]
prints with f[e1,e2,] given in default infix form: e1~f~e2~f~e3.

Infix[expr,h]
prints with arguments separated by h: e1 h e2 h e3.

DetailsDetails

  • 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:
  • x.y.z490
    x y z400
    x+y+z310
    x==y290
    x=y40
  • Possible grouping (associativity) specifications are:
  • NonAssociativenot associativealways parenthesized
    Nonealways associativenever parenthesized
    Leftleft associative (e.g. (a/b)/c)
    Rightright associative (e.g. a^(b^c))
Introduced in 1988
(1.0)
Translate this page: