3 ms·
This is the obvious solution I was looking for. Thanks! (and I rightfully feel stupid now)
by moritzwarhier 3y ago
This is the obvious solution I was looking for. Thanks!
(and I rightfully feel stupid now)
- cubefox 3y agoThe formula is slightly wrong though. This is the right one: a or b = a + b - (a * b) The last term is equivalent to a conjunction. Which also makes sense when you think of probability: P(a or b) = P(a) + P(b) - P(a and b)
- moritzwarhier 3y agoAwesome, thanks! For the mod 2 addition, the sign makes no difference I guess, but this cross-link makes the negative sign much more convincing
- xigoi 3y agoTrue, but in modulo 2, + and - are the same. I chose the + to keep the formula simple.