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 >

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.
Find the variables in a Boolean expression:
Find the number of variables for a pure BooleanFunction object:
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]=
Find the Boolean variables in a Boolean expression:
Programmatically get the number of arguments to a pure Boolean function:
BooleanVariables is by default used as the list of variables for BooleanTable:
Use BooleanVariables to get a variable list for SatisfiabilityInstances:
Anything that is not explicitly constructed using Boolean primitives and functions is variable:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team