Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Discrete Mathematics > Boolean Computation >
Mathematica > Mathematics and Algorithms > Logic & Boolean Algebra > Boolean Computation >

Equivalent

Equivalent[e1, e2, ...]
represents the logical equivalence e_1<=>e_2<=>..., giving True when all of the ei are the same.
  • As a Boolean function, Equivalent[e1, e2, ...] is equivalent to (e1Ande2AndCenterEllipsis)Ore1And¬e2AndCenterEllipsis).
Test equivalence of Boolean expressions:
Enter using Esc eq Esc:
Test equivalence of Boolean expressions:
In[1]:=
Click for copyable input
Out[1]=
 
Enter using Esc eq Esc:
In[1]:=
Click for copyable input
Out[1]=
Automatic simplifications:
TraditionalForm formatting:
Prove equivalence between different Boolean expressions:
Use BooleanConvert to express Equivalent in terms of And and Or:
A well-known representation of two-argument Equivalent in terms of Implies:
This proves that the two representations are indeed equivalent:
Equivalent can be represented in terms of BooleanCountingFunction:
Equivalent with two arguments is equivalent to Xnor:
For more arguments these are different primitives:
Use Resolve to prove equivalence of two systems of equations:
Equivalent is effectively Equal for Boolean expressions:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team