How can I implement XOR using basic mathematical operators like +,-,*,/
Update: Actually, I need to track change in two matrix having Boolean values. T
In Brown, G. and Dell, R., Formulating linear and integer linear programs: A rogues’ gallery the following linear programming formulation for the XOR can be found:
Z3 = Z1 XOR Z2
resolves to
Z3 <= Z1 + Z2 Z3 >= Z1 - Z2 Z3 >= -Z1 + Z2 Z3 <= 2 - Z1 - Z2