The Full Wiki



More info on Infix notation

Infix notation: Wikis

  

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

Updated live from Wikipedia, last check: June 02, 2012 12:48 UTC (42 seconds ago)

From Wikipedia, the free encyclopedia

Infix-dia.png
Prefix notation
Infix notation
Postfix notation

Infix notation is the common arithmetic and logical formula notation, in which operators are written infix-style between the operands they act on (e.g. 2 + 2). It is not as simple to parse by computers as prefix notation ( e.g. + 2 2 ) or postfix notation ( e.g. 2 2 + ), but many programming languages use it due to its familiarity.

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

External links


Simple English

Prefix notation
Infix notation
Postfix notation
Infix notation is the common arithmetic and logical formula notation, in which operators are written infix-style between the operands they act on (e.g. 2 + 2). It is not as simple to parse by computer as prefix notation ( e.g. + 2 2 ) or postfix notation ( e.g. 2 2 + ), but many programming languages use it due to its familiarity.

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. These are explained in the order of operations article.

Other pages

  • postfix notation, also called Reverse Polish notation
  • prefix notation, also called Polish notation
  • Shunting yard algorithm, used to convert infix notation to postfix notation or to a tree

Other websites








Got something to say? Make a comment.
Your name
Your email address
Message
Please enter the solution to case below
70+12=