Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

0+50x1-60-60x0+10=??

  1. Aug 1, 2016 #1

    davenn

    User Avatar
    Science Advisor
    Gold Member

    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
     
  2. jcsd
  3. Aug 1, 2016 #2

    fresh_42

    Staff: Mentor

    Your answer is correct. 0.
    Edit: even modern programming editors read it this way, hell, even Excel does.
     
  4. Aug 1, 2016 #3

    davenn

    User Avatar
    Science Advisor
    Gold Member


    OK, so the multiplication rule is followed even if there are no brackets
     
  5. Aug 1, 2016 #4

    andrewkirk

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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.
     
  6. Aug 1, 2016 #5

    fresh_42

    Staff: Mentor

    Especially then!
     
  7. Aug 1, 2016 #6

    fresh_42

    Staff: Mentor

    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.
     
  8. Aug 1, 2016 #7

    davenn

    User Avatar
    Science Advisor
    Gold Member

    ohhh really ! wow
    shows you how bad my maths abilities are hahaha
    I failed school cert maths twice :frown::oops:
     
  9. Aug 1, 2016 #8

    Charles Link

    User Avatar
    Homework Helper

    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?
     
  10. Aug 1, 2016 #9

    andrewkirk

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    It still gives that incorrect result in MS Office Professional Plus 2013.
     
  11. Aug 1, 2016 #10

    davenn

    User Avatar
    Science Advisor
    Gold Member

    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
     
  12. Aug 1, 2016 #11

    andrewkirk

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    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.
     
  13. Aug 2, 2016 #12

    davenn

    User Avatar
    Science Advisor
    Gold Member

    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
     
  14. Aug 2, 2016 #13

    Nidum

    User Avatar
    Science Advisor
    Gold Member

    Remember BODMAS from school days ?
     
  15. Aug 2, 2016 #14

    davenn

    User Avatar
    Science Advisor
    Gold Member

    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 path


    D
     
  16. Aug 2, 2016 #15

    symbolipoint

    User Avatar
    Homework Helper
    Education Advisor
    Gold Member

    No parentheses and no exponents. Multiplications are done first; additions and subtractions from left to right;
    result is 0.
     
  17. Aug 7, 2016 #16
    PEDMAS for me.
     
  18. Aug 7, 2016 #17

    symbolipoint

    User Avatar
    Homework Helper
    Education Advisor
    Gold Member

    The "B" would mean brackets, so telling "grouping symbols". The "O" is not clear immediately, but could mean "order" as in "degree" or "exponent".
     
  19. Aug 7, 2016 #18
    -I- sure do!

    Or BEDMAS.

    See the page linked with the text BODMAS -- http://www.skillsyouneed.com/num/bodmas.html
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: 0+50x1-60-60x0+10=??
  1. Goodbye 60 seconds! (Replies: 9)

  2. 0/0 = ? (Replies: 69)

  3. Revisiting the 60's (Replies: 48)

Loading...