Anonymous user
Parsing/RPN to infix conversion: Difference between revisions
m
added a fourth column to the operator precedence table, added highlighting to better read the operator symbols, elided the necessity of a "Note".
m (added a fourth column to the operator precedence table, added highlighting to better read the operator symbols, elided the necessity of a "Note".) |
|||
Line 17:
|}
* Operator precedence and operator associativity is given in this table:
:{| class="wikitable"
! operator !! [[wp:Order_of_operations|precedence]] !! [[wp:Operator_associativity|associativity]] !! operation
|- || align="center"
| <big><big> ^ </big></big> || 4 || right || exponentiation
|- || align="center"
| <big><big> * </big></big> || 3 || left || multiplication
|- || align="center"
| <big><big> / </big></big> || 3 || left || division
|- || align="center"
| <big><big> + </big></big> || 2 || left || addition
|- || align="center"
| <big><big> - </big></big> || 2 || left || subtraction
|}
|