How can I implement XOR using basic mathematical operators like +,-,*,/
Update: Actually, I need to track change in two matrix having Boolean values. T
Exclusive-OR is a linear function, but the definition of 'linear' with regards to a boolean function is not the same as with a polynomial function. You will have to look through the documentation for your lp_solve
library to see if it is capable of handling linear boolean functions. From what I have read, I don't suspect that it can.
Edit: After looking further into the simplex algorithm that lp_solve
uses, I'm fairly certain that you can't do what you are trying to do.