829
Trick OR Treat (mander.xyz)
you are viewing a single comment's thread
view the rest of the comments
[-] xthexder@l.sw0.com 1 points 1 day ago* (last edited 1 day ago)

I had to double-take since in Python a common alternative to trick ? treat : notreat is (trick and treat) or notreat

But I don't think this translates to overlapping circles very well. "trick implies treat" is only defined inside the trick circle, outside is undefined if treat is true or not.

I'm not going to draw a diagram, but here's the "truth table" for A implies B:

A, B, A -> B
N, N, undefined
N, Y, undefined
Y, N, false
Y, Y, true
[-] nelly_man@lemmy.world 5 points 1 day ago

If A is false, A -> B is true regardless of what B is, so the two undefined terms in your truth table should be true.

So it is fairly easily translated into a shaded Venn Diagram. It's simply everything shaded aside from Trick only.

this post was submitted on 30 Oct 2024
829 points (99.3% liked)

Science Memes

10833 readers
2065 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.


Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS