3 ms·
a * b * c is only nonzero if all of a, b, c are nonzero. That's AND, and should be pretty intuitive. a + b + c is nonzero if any of them are nonzero. (Remember
by dataflow 3y ago
a * b * c is only nonzero if all of a, b, c are nonzero. That's AND, and should be pretty intuitive.
a + b + c is nonzero if any of them are nonzero. (Remember each value is either 0 or 1.) So that's the intuition for OR.
- explaininjs 3y agoa+b+c is nonzero if any of a or b or c are nonzero.
- dataflow 3y agoYeah I just added that. I was hesitant initially cause you have to also note they're nonnegative, and that you're treating them like real numbers rather than mod 2.
- explaininjs 3y agoNatural numbers are the natural numbers for me! (ISO 80000-2, of course)