Lemuria
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Toes♀@ani.social to 196@lemmy.blahaj.zone · 1 year ago

Glitch in the matrix

ani.social

message-square
354
link
fedilink
5

Glitch in the matrix

ani.social

Toes♀@ani.social to 196@lemmy.blahaj.zone · 1 year ago
message-square
354
link
fedilink
  • Pavidus@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    There’s quite a few calculators that get this wrong. In college, I found out that Casio calculators do things the right way, are affordable, and readily available. I stuck with it through the rest of my classes.

    • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Ditto for Sharp. It’s really only Texas Instruments that is the ongoing exception to the rule.

    • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Sharp as well.

    • Limitless_screaming@kbin.social
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      My Casio calculators get this wrong, even the newer ones. BTW the correct answer is 16, right?

      • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        the correct answer is 16, right?

        No, the correct answer is 1.

      • cerement@slrpnk.net
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago
        • 16 is the right answer if you use PEMDAS only: (8 ÷ 2) × (2 + 2)
        • 1 is the right answer if you use implicit/explicit with PEMDAS: 8 ÷ (2 × (2 + 2))
        • both are correct answers (as in if you don’t put in extra parentheses to reduce ambiguity, you should expect expect either answer)
        • this is also one of the reasons why postfix and prefix notations have an advantage over infix notation
          • postfix (HP, RPN, Forth): 2 2 + 8 2 ÷ × .
          • prefix (Lisp): (× (÷ 8 2) (+ 2 2))
        • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          16 is the right answer if you use PEMDAS only: (8 ÷ 2) × (2 + 2)

          You added brackets and changed the answer. 2(2+2) is a single term, and if you break it up then you change the answer (because now the (2+2) is in the numerator instead of in the denominator).

          1 is the right answer

          The only right answer

          both are correct answers

          Nope, 1 is the only correct answer.

          this is also one of the reasons why postfix and prefix notations have an advantage over infix notation

          Except they don’t. This isn’t a notation problem, it’s a people don’t remember the rules of Maths problem.

        • brian@programming.dev
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          prefix notation doesn’t need parentheses either though, at least in this case. lisp uses them for readability and to get multiple arity operators. infix doesn’t have any ambiguity either if you parenthesize all operations like that.

          • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            infix doesn’t have any ambiguity either if you parenthesize all operations like that

            There isn’t any ambiguity even if you don’t.

      • KoalaUnknown@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 year ago

        Yes

        8 / 2 (2+2)

        8 / 2 (4)

        4 (4)

        16

        • 4am@lemm.ee
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          1 year ago

          No

          8 / 2 (2+2)

          8 / 2 (4)

          8 / 8

          1

          • Coreidan@lemmy.worldBanned from community
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            No. Order of operations is left to right, not right to left. 1 is wrong.

            • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              Order of operations is left to right

              Order of operations is BEDMAS, THEN left to right within each operator.

              1 is wrong

              1 is the only correct answer.

            • 50MYT@aussie.zone
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Pemdas.

              Multiplication comes before division.

              1 is the correct answer.

              • kryptonianCodeMonkey@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                edit-2
                1 year ago

                That’s wrong. Multiplication and division have equal precedence, same as addition and subtraction. You do them left to right. PEMDAS could be rewritten like PE(MD)(AS). After parentheses and exponents, it"s Multiplication and division together, then addition and subtraction together. They also teach BODMAS some places, which is “brackets, order, division and multiplication, addition and subtraction” Despite reversing the division and multiplication, it doesn’t change the order of operations. They have the same priority, so they are just done left to right. PEMDAS and BODMAS are the different shorthand for the same order of operations.

              • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                1 is the correct answer, but it’s because Brackets comes before Division - there is no Multiplication in this problem.

              • 0ops@lemm.ee
                link
                fedilink
                arrow-up
                0
                ·
                1 year ago

                There’s an argument to be made that implicit multiplication comes before division, resulting in the answer 1, but all multiplication? That’s wrong, full-stop. You calculate (explicit) multiplication and division in one step, left to right. Reason being that division is technically just multiplying by the reciprocal.

                • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 year ago

                  There’s no such thing as implicit multiplication.

        • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Yes

          No.

          8 / 2 (4) 8/(2x4) 8/8 1

          • KoalaUnknown@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            deleted by creator

            • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              1 year ago

              No, 8 / 2 happens before 2 * 4

              That’s (2x4). Doing division before brackets goes against the order of operations rules.

              • KoalaUnknown@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                1 year ago

                deleted by creator

                • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  1 year ago

                  Division and multiplication are equal in the order of operations

                  I didn’t say they weren’t. I said…

                  Doing division before brackets goes against the order of operations rules

                  You did 8/2x4, which is the same as (8/2)(2+2), which isn’t the same as 8/2(2+2)=8/2(4)=8/(2x4).

                  • KoalaUnknown@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    edit-2
                    1 year ago

                    deleted by creator

      • Th0rgue@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        1 year ago

        Depends on the system you use. Most common system worldwide and in the academic circles (the oldest of the two) has 1 as the answer.

        • 💡𝚂𝗆𝖺𝗋𝗍𝗆𝖺𝗇 𝙰𝗉𝗉𝗌📱@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          1 year ago

          Depends on the system you use

          There are no other systems - only people who are following the actual rules of Maths and those who aren’t. And yes, 1 is the correct answer

196@lemmy.blahaj.zone

196@lemmy.blahaj.zone

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !196@lemmy.blahaj.zone

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

  • No bigotry (transphobia, racism, etc…)
  • No genocide denial
  • No support for authoritarian behaviour (incl. Tankies)
  • No namecalling
  • Accounts from lemmygrad.ml, threads.net, or hexbear.net are held to higher standards
  • Other things seen as cleary bad

Posting rules:

  • No AI generated content (DALL-E etc…)
  • No advertisements
  • No gore / violence
  • Mutual aid posts are not allowed

NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn’t adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.

If you have any questions, feel free to contact us on our matrix channel or email.

Other 196’s:

  • !196@lemmy.world
  • !onehundredninetysix@lemmy.blahaj.zone
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 596 users / day
  • 2.91K users / week
  • 6.73K users / month
  • 16.5K users / 6 months
  • 3 local subscribers
  • 17.6K subscribers
  • 13.8K Posts
  • 129K Comments
  • Modlog
  • mods:
  • Moss@lemmy.blahaj.zone
  • greembow@lemmy.blahaj.zone
  • moss@lemmy.world
  • Queue@beehaw.org
  • funky-rodent [he/him]@lemmy.blahaj.zone
  • Peachy [they/she] @lemmy.blahaj.zone
  • threegnomes@lemmy.blahaj.zone
  • greembow@lemmy.world
  • remotelove@lemmy.ca
  • Roflmasterbigpimp@feddit.de
  • A_Very_Big_Fan@lemm.ee
  • qaz@lemmy.blahaj.zone
  • A_Very_Big_Fan@lemmy.world
  • qaz@lemmy.sdf.org
  • qaz@lemmy.world
  • qaz@sh.itjust.works
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org