Definitely a repost, but it fits the season

    • Captain Aggravated@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      22 hours ago

      That’s an interesting question, and I’m gonna go learn the answer.

      duckduckgo powers activate!

      So yes, they do. It generally goes NOT, AND, OR. And if you’re doing algebra in binary and you’ve got boolean operators in there (you can AND two numbers the same way you can ADD two numbers in binary) PEMDAS becomes PEMDASNAO.

          • silasmariner@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            11 hours ago

            It’s a reasonable convention that matches the common DNF (disjunctive normal form) of propositional logic, can confirm it’s the right read.

            I’d still probably use parentheses for the ∧ (and/conjunction), though I’d never bother with it for ¬ (negation)