DOCUMENTATION CENTER SEARCH
Mathematica
>
Bitwise Operations
>
Built-in
Mathematica
Symbol
Integer and Number Theoretic Functions
Tutorials »
|
BitSet
BitGet
BitLength
BitAnd
ReplacePart
See Also »
|
Bitwise Operations
New in 6.0: Number Theory & Integer Functions
More About »
BitClear
BitClear
[
n
,
k
]
sets to 0 the bit corresponding to the coefficient of
in the integer
n
.
MORE INFORMATION
BitClear
[
n
,
k
]
clears the bit
k
places from the right.
EXAMPLES
CLOSE ALL
Basic Examples
(1)
Display coefficients at powers of 2 in the integer 63:
In[1]:=
Out[1]=
Clear the bit corresponding to the coefficient at
2
0
:
In[2]:=
Out[2]=
In[3]:=
Out[3]=
Clear the bit corresponding to the coefficient at
2
3
:
In[4]:=
Out[4]=
In[5]:=
Out[5]=
SEE ALSO
BitSet
BitGet
BitLength
BitAnd
ReplacePart
TUTORIALS
Integer and Number Theoretic Functions
MORE ABOUT
Bitwise Operations
New in 6.0: Number Theory & Integer Functions
New in 6
© 2008 Wolfram Research, Inc.