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 490x y z 400x+y+z 310x==y 290x=y 40
- Possible grouping (associativity) specifications are:
-
NonAssociative not associative—always parenthesizedNone always associative—never parenthesizedLeft 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 allBasic Examples (2)
Display f[x,y] in infix form:
Use a custom string as the infix operator:
Possible 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: 04-January-2026]}
BibLaTeX
@online{reference.wolfram_2025_infix, organization={Wolfram Research}, title={Infix}, year={1988}, url={https://reference.wolfram.com/language/ref/Infix.html}, note=[Accessed: 04-January-2026]}