BooleanVariables

BooleanVariables[expr]

gives a list of the Boolean variables in the Boolean expression expr.

BooleanVariables[bf]

gives the number of Boolean variables in the BooleanFunction object bf.

Details

Examples

open allclose all

Basic Examples  (2)

Find the variables in a Boolean expression:

In[1]:=
Click for copyable input
Out[1]=

Find the number of variables for a pure BooleanFunction object:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Properties & Relations  (2)

Possible Issues  (1)

See Also

BooleanFunction  BooleanTable  Variables  Length

Introduced in 2008
(7.0)