Infix notation

Source: Wikipedia, the free encyclopedia.

Infix notation is the notation commonly used in

plus sign
in 2 + 2.

Usage

perpendicular lines
a and b are denoted and in projective geometry two points b and c are in perspective when while they are connected by a projectivity when

Infix notation is more difficult to

postfix notation (e.g. 2 2 +). However many programming languages use it due to its familiarity. It is more used in arithmetic, e.g. 5 × 6.[1]

Further notations

Infix notation may also be distinguished from

arguments
are the operands. An example of such a function notation would be S(1, 3) in which the function S denotes addition ("sum"): S(1, 3) = 1 + 3 = 4.

Order of operations

In infix notation, unlike in prefix or postfix notations, parentheses surrounding groups of operands and operators are necessary to indicate the intended order in which operations are to be performed. In the absence of parentheses, certain precedence rules determine the order of operations.

See also

References

  1. ^ "The Implementation and Power of Programming Languages". Archived from the original on 27 August 2022. Retrieved 30 August 2014.

External links