Order of operations - what is 6÷2(1+2) ? - Printable Version +- HP Forums ( https://www.hpmuseum.org/forum)+-- Forum: HP Calculators (and very old HP Computers) ( /forum-3.html)+--- Forum: General Forum ( /forum-4.html)+--- Thread: Order of operations - what is 6÷2(1+2) ? ( /thread-11916.html) |

Order of operations - what is 6÷2(1+2) ? - Gene - 12-06-2018 11:49 PM
Physics-astronomy.com Usually we would work from the inside out in RPN. I keyed this as written on my PRIME app with the implied multiplication and it gives the answer the website above says is incorrect. So... ? RE: Order of operations - what is 6÷2(1+2) ? - Leviset - 12-07-2018 12:03 AM
The answer is 1 More interestedly is the fact that you can’t put just 1 in this message - it moans that it must be 5 Chars minimum RE: Order of operations - what is 6÷2(1+2) ? - cdmackay - 12-07-2018 12:42 AM
(12-07-2018 12:03 AM)Leviset Wrote: The answer is 1 The point was, I think: why isn't the answer 9, which the normal rules of operator precedence seem to imply? The video claims that taking everything after the ➗ as the denominator has been obsolete for 100 years, and that current practice should evaluate the division before the implied multiplication (left to right). But the calculator result would seem at odds with that. Unfortunately, my video stopped playing half-way though, so I may have missed something vital RE: Order of operations - what is 6÷2(1+2) ? - jimbo - 12-07-2018 12:44 AM
My HP20s gives me an answer of 9. Hp50g in algebraic mode also give 9 Prime gives 1 Jim RE: Order of operations - what is 6÷2(1+2) ? - cdmackay - 12-07-2018 12:46 AM
This is presumably because the Prime doesn't enter the division symbol as is, but uses it to immediately present a fractional input, thus enforcing the (wrong?): everything else is the denominator. RE: Order of operations - what is 6÷2(1+2) ? - Steve Simpkin - 12-07-2018 02:06 AM
Some other examples of different calculator interpretations of the rules of operator precedence. My HP-48GX returns an answer of 9 when I enter '6/2*(1+2)' EVAL or 1 if I use the Equation Writer and use implied multiplication of 6/2(1+2) which is converted to 6/(2*(1+2))'. My Casio fx-115ES Plus returns an answer of 1 if I enter 6/2(1+2) or 9 if I enter 6/2*(1+2). WolframAlpha returns 9 to 6/2*(1+2) or 6/2(1+2). Google returns 9 to 6/2*(1+2) or 6/2(1+2). My Prime app returns 1 if I enter 6/2*(1+2) or 6/2(1+2). I can't seem to use an implied multiply on the Prime without it being converted to a *. Another discussion on this topic: https://www.quora.com/What-will-be-the-value-of-6%C3%B72-1-+2 RE: Order of operations - what is 6÷2(1+2) ? - Steve Simpkin - 12-07-2018 02:13 AM
Additional discussions of this topic at this forum: http://www.hpmuseum.org/forum/thread-8982.html http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv021.cgi?read=246984 RE: Order of operations - what is 6÷2(1+2) ? - Gerson W. Barbosa - 12-07-2018 02:57 AM
CASIO fx-991LA X: 6÷2×(1+2) = —> 9 6÷2(1+2) = —> 1 and afterwards the expression is automatically rewritten as 6÷(2(1+2)) RE: Order of operations - what is 6÷2(1+2) ? - Paul Berger (Canada) - 12-07-2018 03:40 AM
nspire and voyage200 both return 9 and convert to 6/2.(1+2) no matter if it is entered with an explicit multiplication or not. My old eyes have a hard time seeing the dot on the nspire screen. RE: Order of operations - what is 6÷2(1+2) ? - RMollov - 12-07-2018 08:19 AM
"egg or chicken came first" "problem" once again. RE: Order of operations - what is 6÷2(1+2) ? - Maximilian Hohmann - 12-07-2018 09:44 AM
Hello! We've discussed this before, but without some "strage unwritten agreement" the answer is 9. This is how they teach mathematics at schools and universities in my part/most parts of the world and how, as is obvoius from the postings above, most smart calculators are programmed too. Maybe it is time to trash those ambiguos unwritten agreements and start doing things in a standardised way instead of digging them up year after year? Regards Max RE: Order of operations - what is 6÷2(1+2) ? - JSBach - 12-07-2018 10:07 AM
I think most programming languages do it right. I tried it in python and perl, and both threw an error. Mathematical expressions in programming and on calculators should be unambiguous. JSBach RE: Order of operations - what is 6÷2(1+2) ? - grsbanks - 12-07-2018 10:22 AM
What this boils down to is whether or not implicit multiplication takes precedence over "normal" multiplication and division. While it was many years ago, I have no recollection of this being taught in maths classes in either of two different countries (the approach to teaching in France is quite different to that in the UK), so I would say that the expression is equivalent to (6÷2)(1+2) = 9. RE: Order of operations - what is 6÷2(1+2) ? - BruceH - 12-07-2018 10:53 AM
(12-07-2018 10:22 AM)grsbanks Wrote: What this boils down to is whether or not implicit multiplication takes precedence over "normal" multiplication and division. While it was many years ago, I have no recollection of this being taught in maths classes in either of two different countries (the approach to teaching in France is quite different to that in the UK), so I would say that the expression is equivalent to (6÷2)(1+2) = 9. For me, it's not the 'implicit multiplication' but the fact that writing ÷ by hand is so uncommon. What's much more common is writing \( \frac{6}{2(1+2)} \) or \( \frac{6}{2} (1+2) \) where the scope of the division is given by the length of the line and unambiguous. Either way, children are taught BODMAS / PEMDAS [1] and it's just a case of applying the rules, taking care not to assume you know what the question is. [1] Or the equivalent in other languages RE: Order of operations - what is 6÷2(1+2) ? - Thomas Klemm - 12-07-2018 10:53 AM
(12-07-2018 10:22 AM)grsbanks Wrote: … I have no recollection of this being taught in maths classes … We don't have this ambiguity in math. You either write: \(\frac{6}{2}(1+2)=9\) Or then: \(\frac{6}{2(1+2)}=1\) Cheers Thomas RE: Order of operations - what is 6÷2(1+2) ? - grsbanks - 12-07-2018 11:01 AM
(12-07-2018 10:53 AM)BruceH Wrote: Either way, children are taught BODMAS / PEMDAS [1] and it's just a case of applying the rules, taking care not to assume you know what the question is. Exactly. Absent the traditional, unambiguous notation, BODMAS/PEMDAS is what has to be applied, hence the answer being \( \frac {6}{2}(1+2) = 9\) RE: Order of operations - what is 6÷2(1+2) ? - Pekis - 12-07-2018 12:08 PM
Never trust a calculator RE: Order of operations - what is 6÷2(1+2) ? - Dave Britten - 12-07-2018 01:41 PM
If any calculator has the nerve to say that 6÷2(1+2)=1, but then turn around and say that -2^2=-4, then it can just go straight in the bin. RE: Order of operations - what is 6÷2(1+2) ? - klesl - 12-07-2018 03:58 PM
The result is undefined (both results are correct till somebody clarifies such types of expressions) due to ambiguity and depends purely on implementation of calc manufacturers. The order of operations is written in each user guide, at least I hope. Engineers from Casio decided to solve this ambiguity by adding another pair of brackett, I agree with this solution. Personally I prefer the result is "1" since I evaluate the 2(1+2) first. RE: Order of operations - what is 6÷2(1+2) ? - toml_12953 - 12-07-2018 05:12 PM
(12-07-2018 12:03 AM)Leviset Wrote: The answer is 1 That's only the case if the implied multiplication is done before the division. If you're doing it by hand using the PMDAS rules, you would do this: Parentheses first: (1+2) = 3 multiplication and division are left to right: 6/2 = 3 3 * 3 = 9 so the answer would be 9. The implied multiplication doesn't take precedence over the division which comes first, reading left to right. |