1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

and the answer is?

Discussion in 'General Chit Chat' started by Mattecube, Jun 16, 2019.

  1. Mattecube
    Offline

    Mattecube face the sunshine so shadows fall behind you Trusted Member

  2. bigmac
    Offline

    bigmac Well-Known Member Trusted Member

    4
  3. Mattecube
    Offline

    Mattecube face the sunshine so shadows fall behind you Trusted Member

    No
  4. Druk1
    Offline

    Druk1 Well-Known Member

    104?
    • Agree Agree x 3
  5. walesrob
    Offline

    walesrob Administrator Staff Member

    Simples - 79
  6. oss
    Offline

    oss Somewhere Staff Member

    Operator precedence, multiplication and division take precedence over addition and subtraction

    It reads :-

    50 + 50 - (25*0) + 2 + 2 = 104

    Operator precedence in maths and computing :

    exponentiation and roots
    multiplication and division
    addition and subtraction

    I use RPN personally which reads as

    50 Enter 50 +
    25 Enter 0 * -
    2 +
    2 +

    or
    50 Enter 50 plus | stack result 100
    25 Enter 0 times | stack result 0
    minus | stack result 100
    2 plus | stack result 102
    2 plus | stack result 104

    RPN stands for Reverse Polish Notation and is the way that old fashioned adding machines used to work, the ones with the handles.

    It is also the way you were taught to do arithmetic as a kid you would write down a list of numbers and then do the operation for example

    5
    + 4

    9


    Last edited: Jun 16, 2019
  7. Bootsonground
    Offline

    Bootsonground Guest

    Trust the programmer to **** it all up!
    • Funny Funny x 1
  8. Druk1
    Offline

    Druk1 Well-Known Member

    I even got a like for my wrong answer :lol:
  9. Mattecube
    Offline

    Mattecube face the sunshine so shadows fall behind you Trusted Member

    correct
  10. Druk1
    Offline

    Druk1 Well-Known Member

    My answers the right one?Wheres my prize ;)
  11. Mattecube
    Offline

    Mattecube face the sunshine so shadows fall behind you Trusted Member

    [​IMG]
    • Funny Funny x 1
  12. bigmac
    Offline

    bigmac Well-Known Member Trusted Member

    I liked your answer..as mine was wrong.

    And to think i got a good pass in gce o level maths.
    • Like Like x 1
  13. Mattecube
    Offline

    Mattecube face the sunshine so shadows fall behind you Trusted Member

    I got a U grade in maths I reckin it was University standard , my dad reckoned different
  14. Mattecube
    Offline

    Mattecube face the sunshine so shadows fall behind you Trusted Member

  15. bigmac
    Offline

    bigmac Well-Known Member Trusted Member

  16. Mattecube
    Offline

    Mattecube face the sunshine so shadows fall behind you Trusted Member

    your right as the article explains
  17. oss
    Offline

    oss Somewhere Staff Member

    Most people forget the rules as they get older Malcolm, it's no disgrace :)
  18. oss
    Offline

    oss Somewhere Staff Member

    The brackets are implied by the rules of operator precedence, operators are the * / + - symbols on a computer, multiply, divide, add, subtract, and in the teaser you still have to apply operator precedence rules which is why the 25*0 or (25x0) disappears (results in zero) as operator precedence says it has to be evaluated first.
    • Agree Agree x 2
  19. walesrob
    Offline

    walesrob Administrator Staff Member

    What got me confused was the 25 X 0 which of course is 0, not 25. I blame the tablets.
    • Like Like x 1
    • Funny Funny x 1
  20. oss
    Offline

    oss Somewhere Staff Member

    My daughter Janna posed one of these on Facebook, it was a little harder as it was a symbolic algebra problem using pictures but I got it wrong at my first try although I was convinced I had got it right, I misinterpreted the value associated with one of the symbols (a banana) and it's use in the formula and had to apologise to my daughter and tell her she was right and dad was wrong, even though dad is supposed to be clever :)
    • Funny Funny x 1

Share This Page