" <-APL2-------------------- sam230.txt ----------------------------> " <- boolean functions ---------------------------------------------> " <- not (~) -------------------------------------------------------> ~ 0 1 2 3.4 -5 " <- and (&) -------------------------------------------------------> a J.& a#0 1 2 " <- nand (P) ------------------------------------------------------> a J.P a#0 1 2 " <- or (V) --------------------------------------------------------> a J.V a#0 1 2 " <- nor (`V) ------------------------------------------------------> a J.`V a#0 1 2 " <- relational functions as boolean functions ---------------------> a#0 0 1 1 b#0 1 0 1 0 & b " 0 0 0 0 and a & b " 0 0 0 1 and a > b " 0 0 1 0 greater than a " 0 0 1 1 a < b " 0 1 0 0 less than b " 0 1 0 1 a ^= b " 0 1 1 0 not equal a V b " 0 1 1 1 or a `V b " 1 0 0 0 nor a = b " 1 0 0 1 equal ~ b " 1 0 1 0 not a Z b " 1 0 1 1 not less than ~ a " 1 1 0 0 not a K b " 1 1 0 1 not greater than a P b " 1 1 1 0 nand 1 V b " 1 1 1 1 )off