Changes

Jump to navigation Jump to search
no edit summary
Line 18: Line 18:  
|}
 
|}
 
===AND===
 
===AND===
−
AND is the boolean equivalent of multiplication. The product of two numbers are be non-zero if both numbers are non-zero. In words, the AND function states: "If A AND B are true then C is true".  The AND function is commutative, so it results in the same answer no matter what order the values are in. For example, A • B = B • A, and A • (B • C) = (A • B) • C.
+
AND is the boolean equivalent of multiplication. The product of two numbers are non-zero if both numbers are non-zero. In words, the AND function states: "If A AND B are true then C is true".  The AND function is commutative, so it results in the same answer no matter what order the values are in. For example, A • B = B • A, and A • (B • C) = (A • B) • C.
    
Just as in traditional [[algebra]], [[exponent]]s can be represented as a series of multiplications in boolean algebra, but the results are different. A<sup>n</sup> can be represented as the value A multiplied n times, or A•A•A•A... = C. Boolean multiplication returns a "true" (or a 1) if all values are "true" (or 1), but in this case, all values are always the same. So if A = 0, C = 0, and if A = 1, C = 1. This means that A<sup>n</sup> simply reduces to A!
 
Just as in traditional [[algebra]], [[exponent]]s can be represented as a series of multiplications in boolean algebra, but the results are different. A<sup>n</sup> can be represented as the value A multiplied n times, or A•A•A•A... = C. Boolean multiplication returns a "true" (or a 1) if all values are "true" (or 1), but in this case, all values are always the same. So if A = 0, C = 0, and if A = 1, C = 1. This means that A<sup>n</sup> simply reduces to A!
    
===OR===
 
===OR===
 +
OR is the boolean equivalent of addition. The sum of two positive numbers is non-zero if either number is non-zero. In words, the OR function states: "If A OR B is true then C is true". Like AND, the OR function is commutative.
    
===NOT===
 
===NOT===
 +
NOT is a function which is not the equivalent of an algebraic function. It is represented by an apostrophe (A') or an overbar (<math>\bar A</math>). NOT reverses the value of any variable: if A = 0, A' = 1, and if A = 1, A' = 0.
    
===Order of Operations===
 
===Order of Operations===
5,580

edits

Navigation menu