DOCUMENTATION CENTER SEARCH
Mathematica
>
Numerical Functions
>
Built-in
Mathematica
Symbol
Piecewise Functions
Integrals over Regions
Tutorials »
|
If
Piecewise
DiscreteDelta
UnitStep
Unitize
Pick
RegionPlot
True
See Also »
|
Conditionals
Inequalities
Logic & Boolean Algebra
Numerical Functions
More About »
Boole
Boole
[
expr
]
yields
1
if
expr
is
True
and
0
if it is
False
.
MORE INFORMATION
Boole
[
expr
]
remains unchanged if
expr
is neither
True
nor
False
.
Boole
[
expr
]
is effectively equivalent to
If
[
expr
, 1, 0]
.
Boole
is
Listable
.
Integrate
[
f
Boole[
pred
],
...
]
can be used to integrate
f
over the region in which
pred
is
True
.
EXAMPLES
CLOSE ALL
Basic Examples
(3)
In[1]:=
Out[1]=
Convert a list of truth values to integers:
In[1]:=
Out[1]=
Find the area of the disc defined by the inequality
:
In[1]:=
Out[1]=
Applications
(4)
Properties & Relations
(6)
SEE ALSO
If
Piecewise
DiscreteDelta
UnitStep
Unitize
Pick
RegionPlot
True
TUTORIALS
Piecewise Functions
Integrals over Regions
MORE ABOUT
Conditionals
Inequalities
Logic & Boolean Algebra
Numerical Functions
New in 5.1 | Last modified in 6
© 2008 Wolfram Research, Inc.