Math Facebook Challenge: Multiply or End-to-End?

  • Thread starter Thread starter davenn
  • Start date Start date
  • Tags Tags
    Challenge
AI Thread Summary
The discussion revolves around the order of operations in mathematical expressions, particularly when no brackets are present. Participants clarify that multiplication should be performed before addition, adhering to established rules of precedence. This is exemplified with expressions like 1 + 2 x 3, where the correct result is 7 due to the multiplication being prioritized. The conversation also touches on the confusion that can arise from different interpretations and the importance of understanding these rules, often summarized by acronyms like BODMAS or PEDMAS. Additionally, there is a suggestion for a party game involving creating expressions that yield the same result regardless of whether operator precedence is followed. Concerns about Excel's handling of negative numbers in expressions are raised, indicating that some users have encountered issues with how calculations are processed. Overall, the thread emphasizes the significance of mastering basic mathematical principles to avoid misunderstandings.
davenn
Science Advisor
Gold Member
2024 Award
Messages
9,700
Reaction score
11,523
hi gang

this came up in one of those crazy facebook challenges
and you can imagine the arguments that ensued

upload_2016-8-2_7-52-29.png
My maths knowledge isn't brilliant ... so in the above, if there are no brackets,
do you still do the multiplication first or do you just work your way through from end to end ?

I thought, regardless of brackets being there or not, I should follow the mult. first rule, giving result of 0
Now I'm not so sure, maybe those who just worked from end to end and got the answer of 10
are the people that are correct ?regards
Dave
 
Physics news on Phys.org
Your answer is correct. 0.
Edit: even modern programming editors read it this way, hell, even Excel does.
 
fresh_42 said:
Your answer is correct. 0.
Edit: even modern programming editors read it this way, hell, even Excel does.
OK, so the multiplication rule is followed even if there are no brackets
 
It makes me think that a good party game (for maths nerds at least) would be to write an expression like the above that gives the same answer both ways - ie respecting operator precedence and ignoring it in favour of strict left to right evaluation. No brackets allowed, of course.

Given a time limit of say thirty seconds, points could be awarded based on length of expression, number of operators, and how many of the numerals 0-9 are used, in order to determine a winner.

Or - to prevent somebody using an expression they've used before - first roll a dice a few times to randomly identify three or four numerals that are not allowed to be used.
 
davenn said:
OK, so the multiplication rule is followed even if there are no brackets
Especially then!
 
  • Like
Likes davenn
Just a simple remark on this.
Most people use this in everyday life, at least if they do some do-it-yourself works or sum up their shopping costs.
##5$A + 2$A## is, if we make it exact ##5 \cdot $A + 2 \cdot $A = 7 \cdot $A##. The same with meters. And it's the reason why we cannot add ##1## to ##1m##. The multiplication at the meter comes first and before addition can take place.
 
  • Like
Likes davenn
fresh_42 said:
Especially then!

ohhh really ! wow
shows you how bad my maths abilities are hahaha
I failed school cert maths twice :frown::oops:
 
Question on Excel spreadsheet: At one time a few years ago -5^2+3 would give you 28. The leading "-" in an expression would always be evaluated first. To get it to read it properly, you would need to put parenthesis such as -(5^2)+3. This was even the case in exponentials such as Gaussians. (At least this was the case when these expressions involved cell values, etc.) Does anyone know, has this ever been corrected?
 
It still gives that incorrect result in MS Office Professional Plus 2013.
 
  • Like
Likes Charles Link
  • #10
andrewkirk said:
It makes me think that a good party game (for maths nerds at least) would be to write an expression like the above that gives the same answer both ways - ie respecting operator precedence and ignoring it in favour of strict left to right evaluation. No brackets allowed, of course.

Given a time limit of say thirty seconds, points could be awarded based on length of expression, number of operators, and how many of the numerals 0-9 are used, in order to determine a winner.

Or - to prevent somebody using an expression they've used before - first roll a dice a few times to randomly identify three or four numerals that are not allowed to be used.

Hi Andrew

sorry for whatever reason, I missed this first comment of yours. You agree with fresh_42 that regardless of if there are brackets or not
you still do multiplication first ?Dave
 
  • #11
Not exactly, and I don't think that's what fresh was saying either.
Multiplication is done before addition or subtraction, unless overruled by brackets. So in
(1+2) x 3
we do the addition first because the brackets tell us to, and we get 9. But in
1 + 2 x 3
we do the multiplication first, and we get 7.

The rules can be expressed as an order of precedence, where 'a > b' indicates 'do a before b':

calculations inside brackets > exponentiation > multiplication or division > leftmost calculations

Having done the first three of these, we are left with a string of numbers separated by '+' and '-' signs, which can be evaluated from left to right.
 
  • Like
Likes davenn
  • #12
andrewkirk said:
Multiplication is done before addition or subtraction, unless overruled by brackets. So in
(1+2) x 3
we do the addition first because the brackets tell us to, and we get 9. But in
1 + 2 x 3
we do the multiplication first, and we get 7.

The rules can be expressed as an order of precedence, where 'a > b' indicates 'do a before b':

calculations inside brackets > exponentiation > multiplication or division > leftmost calculations

outstanding !

really appreciate the clarification/confirmation :smile:
it's what I though but my cage was being rattled by others and I had to check with those that should know :smile:
Regards
Dave
 
  • #13
Remember BODMAS from school days ?
 
  • Like
Likes davenn
  • #14
Nidum said:
Remember BODMAS from school days ?

nope hahaha ... no wonder I failed school cert maths twice :rolleyes:

The only reason I didn't finish my geology degree was because I hadn't done the two required maths papers
kinda frustrating to know that was all that stood in my pathD
 
  • #15
No parentheses and no exponents. Multiplications are done first; additions and subtractions from left to right;
result is 0.
 
  • Like
Likes davenn and Pepper Mint
  • #16
Nidum said:
Remember BODMAS from school days ?
PEDMAS for me.
 
  • #17
Nidum said:
Remember BODMAS from school days ?
2milehi said:
PEDMAS for me.
The "B" would mean brackets, so telling "grouping symbols". The "O" is not clear immediately, but could mean "order" as in "degree" or "exponent".
 
  • #18
Nidum said:
Remember BODMAS from school days ?
-I- sure do!

Or BEDMAS.

symbolipoint said:
The "B" would mean brackets, so telling "grouping symbols". The "O" is not clear immediately, but could mean "order" as in "degree" or "exponent".
See the page linked with the text BODMAS -- http://www.skillsyouneed.com/num/bodmas.html
 

Similar threads

2
Replies
61
Views
11K
Replies
40
Views
17K
2
Replies
64
Views
15K
2
Replies
83
Views
21K
Replies
46
Views
13K
2
Replies
97
Views
22K
Back
Top