WOLFRAM
Products
Wolfram|One
Mathematica
Wolfram Notebook Assistant + LLM Kit
Wolfram|Alpha Notebook Edition
System Modeler
All Products
Consulting & Solutions
Wolfram Consulting
Industry Solutions
Solutions for Education
Learning & Support
Wolfram U Courses
Wolfram Language Resources
Wolfram Community
Support FAQs
Contact Support
Company
About Wolfram
Careers
Events
Educational Programs
All Sites and Resources
Wolfram|Alpha
Wolfram Cloud
Your Account
Your Account
User Portal
Search
Close
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how
Legacy Documentation
Mathematica 8
(2010)
This is documentation for Mathematica 8, which was
based on an earlier version of Wolfram Language.
View current documentation (Version 14.3)
Mathematica
>
Mathematics and Algorithms
>
Discrete Mathematics
>
Boolean Computation
>
BooleanVariables
>
Mathematica
>
Mathematics and Algorithms
>
Logic & Boolean Algebra
>
Boolean Computation
>
BooleanVariables
>
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Graph Programming
>
Boolean Computation
>
BooleanVariables
>
BUILT-IN MATHEMATICA SYMBOL
BooleanFunction
BooleanTable
Variables
Length
See Also »
|
Boolean Computation
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
More About »
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
.
In
BooleanVariables
[
expr
]
, the expression
expr
can involve any combination of Boolean functions such as
And
,
Or
,
Not
, as well as
BooleanFunction
and related functions.
In
BooleanVariables
[
bf
]
, the expression
bf
must be a single
BooleanFunction
object.
BooleanVariables
[
expr
]
gives a list of variables in the order returned by
Sort
.
(2)
Find the variables in a Boolean expression:
Find the number of variables for a pure
BooleanFunction
object:
Find the variables in a Boolean expression:
Out[1]=
Find the number of variables for a pure
BooleanFunction
object:
Out[1]=
(2)
Find the Boolean variables in a Boolean expression:
Programmatically get the number of arguments to a pure Boolean function:
(2)
BooleanVariables
is by default used as the list of variables for
BooleanTable
:
Use
BooleanVariables
to get a variable list for
SatisfiabilityInstances
:
FindInstance
:
Conjunction
and
Disjunction
:
(1)
Anything that is not explicitly constructed using Boolean primitives and functions is variable:
BooleanFunction
bullet
BooleanTable
bullet
Variables
bullet
Length
Boolean Computation
Summary of New Features in 7.0
New in 7.0: Alphabetical Listing
New in 7
ja
zh
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル