• jjjalljs@ttrpg.network
    link
    fedilink
    English
    arrow-up
    11
    ·
    1 hour ago

    I got some people really angry at me when I suggested writing some math expression with parenthesis so it would be clearer. I think someone told me that order of operations is like a natural law and not a convention, and thus everyone should know it or be able to figure it out.

  • MrSmith@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    3
    ·
    1 hour ago

    To all the people yelling PEMDAS and BOMBDAS or whatever - languages other than English exist.

  • Digit@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 hours ago

    Hrmm.

    I read that as resulting in 21.

    My education system did fail me.

    I plugged that into ghci as 5+2*(8-5), and it says 17.

    :(

    I did (5+2)*(8-5).

    Doh.

    • A_Chilean_Cyborg@feddit.cl
      link
      fedilink
      English
      arrow-up
      8
      arrow-down
      1
      ·
      1 hour ago

      You do parenthesis first and then multiplications and then sums, you did parenthesis, then sums, then multiplications, wich is wrong.

    • Nils@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      47 minutes ago

      plugged that into ghci as 5+2*(8-5), and it says 17.

      You might want to report that error. Or, did you mean 2+5*(8-5)?

    • beneeney@lemmy.zip
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 hours ago

      Aunt Sally said some racist things at Thanksgiving, I’m tired of excusing her smh

    • callouscomic@lemmy.zip
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      2
      ·
      2 hours ago

      I’ll never understand these approaches to learning. They require remembering the phrase, and then require remembering how the phrase translates to the rules you need to remember.

      I’ll just remember the rules in the first place. Less effort.

      • tigeruppercut@lemmy.zip
        link
        fedilink
        English
        arrow-up
        9
        ·
        2 hours ago

        There’s just no way rote learning is easier than mnemonics unless you have a photographic memory.

        Shit, I still remember the order of taxonomic ranks after seeing the phrase “King Phillip came over from Germany stoned” written in a used bio textbook 30 years ago when we never even made it to that chapter to officially study in class. I guarantee I never would’ve remembered the list “kingdom phylum class order family genus species”.

  • SSUPII@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    203
    arrow-down
    1
    ·
    10 hours ago

    I feel like I am getting trolled

    Isn’t 17 the actual right answer?

    • marcos@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      arrow-down
      1
      ·
      2 hours ago

      Some people insist there’s no “correct” order for the basic arithmetic operations. And worse, some people insist the correct order is parenthesis first, then left to right.

      Both of those sets of people are wrong.

        • NewDark@lemmings.world
          link
          fedilink
          English
          arrow-up
          63
          arrow-down
          1
          ·
          9 hours ago

          I think it’s meant to play with your expectations. Normally someone’s take being posted is to show them being confidently stupid, otherwise it isn’t as interesting and doesn’t go viral.However, because we’re primed to view it from that lens, we feel crazy to think we’re doing the math correctly and getting the “wrong answer” from what we assume is the “confident dipshit”.

          There’s layers beyond the superficial.

          • namingthingsiseasy@programming.dev
            link
            fedilink
            English
            arrow-up
            9
            ·
            4 hours ago

            I fell for it. It’s crazy to think how heavily I’ve been trained to believe everything I see is wrong in the most embarrassing and laughable way possible. That’s pretty depressing if you think about it.

      • SSUPII@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        21
        ·
        8 hours ago

        Yeah I know that. But I was feeling confused as to why it was here. That’s why I was feeling trolled, because it made me doubt basic math for being posted in a memes community.

        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          7
          arrow-down
          2
          ·
          edit-2
          37 minutes ago

          They did the joke wrong. To do it right you need to use the ÷ symbol. Because people never use that after they learn fractions, people treat things like a + b ÷ c + d as

          a + b
          -----
          c + d
          

          Or (a + b) ÷ (c + d) when they should be treating it as a + (b ÷ c) + d.

          That’s the most common one of these “troll.math” tricks. Because notating as

          a + b + d
              -
              c
          

          Is much more common and useful. So people get used to grouping everything around the division operator as if they’re in parentheses.

  • Truscape@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    67
    ·
    edit-2
    10 hours ago

    Presuming PEMDAS is our order of operations and the 5 next to the parentheses indicates multiplication…

    2+5(8-5) -> 2+5(3) -> 2+15=17

    Other than adding a multiplication indicator next to the left parentheses for clarification (I believe it’s * for programming and text chat purposes, a miniature “x” or dot for pen and paper/traditional calculators), this seems fine, yeah.

    …I worry about how many people may not understand how to solve equations like these.

    • Alaknár@sopuli.xyz
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      1 hour ago

      Multiplication sign is not required in situations like this. Same with unknowns - you don’t have to write 2*x, you just write 2x.

      • Cethin@lemmy.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        59 minutes ago

        Technically not algebra, right? Algebra is where you move things around and solve for variables, and that kind of thing. This is just arithmetic.

      • Truscape@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        6 hours ago

        Fair enough, I’ve heard “math problem” and “math equation” used interchangeably.

        Also you would be surprised how many people do not know basic algebra, at least in the US rofl

        • upandatom@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          1
          ·
          4 hours ago

          You. You are one of them bc you do not know what an equation is.

          There is no algebra here. This is arithmetic.

    • TheRedSpade@lemmy.world
      link
      fedilink
      English
      arrow-up
      13
      ·
      edit-2
      9 hours ago

      While I never failed a math class, I also never went past high school. When would your presumptions NOT be true?

      • Truscape@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        9 hours ago

        Some forms of programming syntax, although there are the fringe cases where an equation (or function in programming) is represented by a symbol in conjunction with a parentheses input.

        For example:

        y(x) = 2*x+3

        5+y(1) = 10, as 1 is substituted in for x in the prior equation.

        • TheBlackLounge@lemmy.zip
          link
          fedilink
          English
          arrow-up
          3
          ·
          7 hours ago

          And in some languages a number can be used as a name of a variable or a function, so it can be anything really

    • DarkCloud@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      15
      ·
      9 hours ago

      I prefer BM-DAS, no one’s out here doing exponents, and no one calls brackets “parentheses”…

      • cobysev@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        ·
        8 hours ago

        The way I was taught growing up, brackets are [these]. Parenthesis are (these).

        Yes, technically the latter are also brackets. But they can also be called parenthesis, whereas the former is exclusively a bracket. So we were taught to call them separate words to differentiate while doing equations.

        • Droggelbecher@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          5 hours ago

          I’m a theoretical physics grad student and a night school maths teacher, I have never heard this distinction. People in academia around me call them round and square brackets.

          • tigeruppercut@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 hour ago

            It’s a US vs UK (and probably others) distinction. The ( ) are almost never called brackets in the US, unless it’s a regional thing I’m not aware of. Also the [ ] didn’t get used in any math classes I was in the US up through calculus except for matrices.

            • Droggelbecher@lemmy.world
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 hour ago

              Interesting! Nobody at my institute is a native English speaker. They’re from several European and some Asian and south American countries.

        • DarkCloud@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          1
          ·
          8 hours ago

          Yeah, but as an adult it depends entirely on whether you’re in an industry or hobby that requires that level of bracket nuance/exponents.

          Most of us are just trying to remember the basics.

      • Deebster@infosec.pub
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 hours ago

        I learnt it as BODMAS (brackets, orders, division and multiplication, addition and subtraction).

        Edit: I see we’re repeating points from the earlier posts down there 👇 (with default sort).

      • MrSmith@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 hour ago

        I don’t know why, but this was intuitively my first approach. Eve though it’s much simpler than that.