• abcd@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    3 days ago

    I agree. It’s totally simple and people overcomplicate.

    BTW one nice thing about German is, that you can even use the same logic for Boolean operators: The AND operator ∧ is called UND being the shorter word (when you put the name at the top). The OR operator ∨ is called ODER being the longer word.

    You can use the same logic in English if you Place AND/OR at the bottom instead 😁

    • Hoimo@ani.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days ago

      I always remember those as “knife” and “cup”, but you have to know that I use my cups the wrong way around.
      When you have two things AB on a table and you come in with a knife or cup (NB: upside down) from above, the knife will separate them “A or B” while the cup will catch them together like a pair of angry wasps “A and B”.

    • affiliate@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      3 days ago

      i also think the “etymology” of the boolean symbols is very helpful in remembering which is which. in lattice theory, their use was inspired by similar notation in set theory. so, AB is like AB, while AB is like AB.

      generally, AB is “the smallest thing that’s greater than or equal to both A and B”, while AB is “the biggest thing that’s less than or equal to both A and B”. similarly to how AB is “the smallest set that contains both A and B”, while AB is “the largest set that’s contained in both A and B”. you can also take things a step further by saying that in the context of sets, AB means AB. doing this means that A ∨ B = A ∪ B, while A ∧ B = A ∩ B. and from this perspective, the “sharp-edged” symbols (<, , ) are just a generalization of their “curvy” counterparts (, , ).

      in the context of boolean algebra, you can set False < True, which at first may seem a bit arbitrary, but it agrees with the convention the that False = 0 and True = 1, and it also makes AB and AB have the same meanings as described above.

      • pyre@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 days ago

        for some reason to remember ∩ and ∪ when I first learned it in school I visualized a mirrored symbol on top. the ∩ looked like a X which represented an intersection, while ∪ looked like an O which represented a whole. for English ∪ already looks like a U which can be thought of as short for union. that would’ve been easier.

        • affiliate@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          3 days ago

          ooh the mirror trick is quite handy. i don’t think i’ve heard that one before. i’ll keep that one in my back pocket in case i ever need it some day. i can’t remember exactly how i learned what they meant, but i think it was probably u for union and n for ntersection.

      • MutilationWave@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        3 days ago

        Math is my worst subject by far. This was incomprehensible to me at first, but I read it a few times and I started to kind of get it, so thank you for that.

        In my mind, boolean operators meant things like AND/OR in internet searches. This functionality and using quotation marks to mean “these exact words” seem to no longer work on Google anyway.

        Does anyone know how to make these work the way they used to? I used to be quite the “google-fu” master, but search has gone to total shit.

    • pyre@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      for English the AND sign looks like an A anyway. if you remember that for AND the OR is just the opposite.