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:

Return False when an equal number of arguments are True and False:

Scope  (1)

Automatic simplifications:

Properties & Relations  (1)

Truth table for binary Majority:

Ternary Majority:

Neat Examples  (1)

The 2D truth table for a Majority function of 12 variables:

Introduced in 2008
 (7.0)