Infix
Details

- 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.z 490 x y z 400 x+y+z 310 x==y 290 x=y 40 - Possible grouping (associativity) specifications are:
-
NonAssociative not associative—always parenthesized None always associative—never parenthesized Left left associative (e.g. (a/b)/c) Right right associative (e.g. a^(b^c)) - The special input form e1~f~e2 is directly interpreted as f[e1,e2] and does not involve Infix. »
Examples
open all close allPossible Issues (1)
The output from Infix contains invisible tagging that preserves its meaning:
Copying the output and using it in a input cell produces the same result:
Typing in a visually identical result from scratch will produce a different result:
See Also
Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Infix, Wolfram Language function, https://reference.wolfram.com/language/ref/Infix.html.
CMS
Wolfram Language. 1988. "Infix." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Infix.html.
APA
Wolfram Language. (1988). Infix. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Infix.html
BibTeX
@misc{reference.wolfram_2025_infix, author="Wolfram Research", title="{Infix}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Infix.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_infix, organization={Wolfram Research}, title={Infix}, year={1988}, url={https://reference.wolfram.com/language/ref/Infix.html}, note=[Accessed: 15-August-2025]}