Majority

Majority[e1,e2,]

gives True if the majority of the ei are True, and False if the majority are False.

Details

Examples

open allclose all

Basic Examples  (1)

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]=

Scope  (1)

Neat Examples  (1)

See Also

BooleanCountingFunction  And  Or

Introduced in 2008
(7.0)