• Aermis@lemmy.world
    link
    fedilink
    arrow-up
    11
    ·
    1 年前

    If you agree that parenthesis go first then the equation becomes 8/2x4. Then it’s simply left to right because multiplication does not take precedence over division. What’s the nuanced talk? That M comes before D in PEMDAS?

    • I Cast Fist@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 年前

      My observation was mainly based on this other comment

      https://programming.dev/comment/5414285

      In this more sophisticated convention, which is often used in algebra, implicit multiplication is given higher priority than explicit multiplication or explicit division, in which those operations are written explicitly with symbols like x * / or ÷. Under this more sophisticated convention, the implicit multiplication in 2(2 + 2) is given higher priority than the explicit division in 8÷2(2 + 2). In other words, 2(2+2) should be evaluated first. Doing so yields 8÷2(2 + 2) = 8÷8 = 1. By the same rule, many commenters argued that the expression 8 ÷ 2(4) was not synonymous with 8÷2x4, because the parentheses demanded immediate resolution, thus giving 8÷8 = 1 again.