Hey!
I've found a bug in the truth table of the 3 and 4 input XNOR gate (pictures attached) in version 2.7.1
XNOR(true,true,true) should be false, but the output is true
XNOR(true,true,true,false) should be false, but the output is true
Sincerely,
Tshongor
I traced back the issue. In the
XnorGate.javain thecomputeOutputfunction in case the code runs to the else branch, it callscomputeExactlyOnefunction, which is nonsense. The if statement should be replaced with a simple call to thecomputeOddParityfunctionNo bug, xnor is thru for an odd number of thru. This is why xnor is useful for parity test..