4 ms·
I always thought ^ is the XOR operator, not AND.
by dingo_bat 10y ago
I always thought ^ is the XOR operator, not AND.
- posterboy 10y agoIn boolean algebra, * (a dot, actually) and + are used for And and Or and the usual rules about association and commutation are used (PEMDAS, kinda, ommiting the * on occasion). Sometimes, what I might call, up arrow and down arrow are used, looking similar to ^ and v, in relation to set arithmetic symbols for the union and intersection oprators.
- svalorzen 10y agoAnother way to easily remember the arrows is to associate them with words: ^ with the A of and, and v with the V for vel (Latin for or). I always did this in logic class since I would always get confused otherwise.
- dnautics 10y agoAlso useful is making the arrows round-ended makes the the union/intersection signs, with or being union and and bring intersection (as it would be with the corresponding indicator functions).
- TeMPOraL 10y agoI remembered these and union/intersection sign by imagining balls falling on the symbols from above - in case of V (OR) they would end up inside the symbol, which suggest summing/union, and in case of ^ (AND) they would get split and collect on opposite sides.
- kkaja 10y agoThe post is using boolean algebra symbols.
- Tomte 10y agoYes, it is. But ^ and ∧ are different.
- turbohedgehog 10y ago⊕ would be XOR using mathematical notation
- coinomega 10y agoI used the notations found in FIPS 180-4 http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf