Assignment to explain in english how 1 or 2 inputs are true:
For 1 input: At least x has to be true and y and z are false, or z has to be true and x and y are false, or y has to be true and x and z are false. Otherwise the statement is false
For 2 input: At least x and y are true and z is false, y and z are true and x is false, or x and z are true and y is false.
Can you define xor(x,y,z) now (for odd number of true inputs meaning of xor, not exactly one true input meaning)?
or(and(x, not(y), not(z)), and(not(x), y, not(z)), and(not(x), not(y), z), and(x,y,z))
Truth table:
try making 3 input nand, nor and xor using operators that take 2 or fewer inputs. for each one, you can stop and give up after 15-30min if it’s hard.
I think for this question the answer is or(or(or(or(and(and(x, not(y), not(z))), and(and(not(x), y), not(z))), and(and(not(x), not(y)),z)),and(x,y,z)))
Truth table:
I counted the open and closed parentheses to see if the number matched