Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Order of operations
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Mixed division and multiplication=== There is no universal convention for interpreting an expression containing both division denoted by '÷' and multiplication denoted by '×'. Proposed conventions include assigning the operations equal precedence and evaluating them from left to right, or equivalently treating division as multiplication by the reciprocal and then evaluating in any order;{{r|Chrystal}} evaluating all multiplications first followed by divisions from left to right; or eschewing such expressions and instead always disambiguating them by explicit parentheses.{{r|Cajori}} Beyond primary education, the symbol '÷' for division is seldom used, but is replaced by the use of [[algebraic fraction]]s,{{r|Wu}} typically written vertically with the numerator stacked above the denominator – which makes grouping explicit and unambiguous – but sometimes written inline using the [[Division slash|slash]] or solidus symbol '/'.{{r|iso}} {{anchor|IMF}} Multiplication denoted by juxtaposition (also known as [[implied multiplication]]) creates a visual unit and is often given higher precedence than most other operations. In academic literature, when inline fractions are combined with implied multiplication without explicit parentheses, the multiplication is conventionally interpreted as having higher precedence than division, so that e.g. {{nowrap|1 / 2''n''}} is interpreted to mean {{nowrap|1 / (2 · ''n'')}} rather than {{nowrap|(1 / 2) · ''n''}}.{{r|BS}}{{r|Chrystal}}{{r|Lennes}}{{r|Strogatz}} For instance, the manuscript submission instructions for the ''[[Physical Review]]'' journals directly state that multiplication has precedence over division,{{r|APS}} and this is also the convention observed in physics textbooks such as the ''[[Course of Theoretical Physics]]'' by [[Lev Landau|Landau]] and [[Evgeny Lifshitz|Lifshitz]]<ref group="lower-alpha" name="NB1"/> and mathematics textbooks such as ''[[Concrete Mathematics]]'' by [[Ronald Graham|Graham]], [[Donald Knuth|Knuth]], and [[Oren Patashnik| Patashnik]].{{r|GKP}} However, some authors recommend against expressions such as {{nowrap|''a'' / ''bc''}}, preferring the explicit use of parenthesis {{nowrap|''a'' / (''bc'')}}.{{r|Peterson}} More complicated cases are more ambiguous. For instance, the notation {{nowrap|1 / 2''π''(''a'' + ''b'')}} could plausibly mean either {{nowrap|1 / [2''π'' · (''a'' + ''b'')]}} or {{nowrap|[1 / (2''π'')] · (''a'' + ''b'')}}.{{r|FatemanCaspi}} Sometimes interpretation depends on context. The ''Physical Review'' submission instructions recommend against expressions of the form {{nowrap|''a'' / ''b'' / ''c''}}; more explicit expressions {{nowrap|(''a'' / ''b'') / ''c''}} or {{nowrap|''a'' / (''b'' / ''c'')}} are unambiguous.{{r|APS}} [[File:Precedence62xplus.jpg|thumb|6÷2(1+2) is interpreted as 6÷(2×(1+2)) by a ''[[fx-82MS]]'' (upper), and (6÷2)×(1+2) by a ''[[TI-83 Plus]]'' calculator (lower), respectively.]] This ambiguity has been the subject of [[Internet meme]]s such as "{{nowrap|8 ÷ 2(2 + 2)}}", for which there are two conflicting interpretations: 8 ÷ [2 · (2 + 2)] = 1 and (8 ÷ 2) · (2 + 2) = 16.{{r|Strogatz}}{{r|Haelle}} Mathematics education researcher Hung-Hsi Wu points out that "one never gets a computation of this type in real life", and calls such contrived examples "a kind of Gotcha! parlor game designed to trap an unsuspecting person by phrasing it in terms of a set of unreasonably convoluted rules".{{r|Wu}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)