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 >

Majority

Majority[e1, e2, ...]
gives True if the majority of the ei are True, and False if the majority are False.
Return True when the majority of arguments are True:
Return False when an equal number of arguments are True and False:
Return True when the majority of arguments are True:
In[1]:=
Click for copyable input
Out[1]=
Return False when an equal number of arguments are True and False:
In[2]:=
Click for copyable input
Out[2]=
Automatic simplifications:
The 2D truth table for a Majority function of 12 variables:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team