I have 2 boolean expressions expr1, expr2. I want to find out if the 2 expressions are equivalent or not.
expr1 = a | b | c expr2 = b | c | a
The expressionions are equivalent.
expr1 = a | b & c expr2 = b | c & a
The expressionions are not equivalent.
I came across the SymPy Python library https://docs.sympy.org/latest/modules/logic.html which lets me find out the equivalent expression in Python. Is there a Ruby library to do the same?