Mathematica > Mathematics and Algorithms > Discrete Mathematics > Boolean Computation >
Mathematica > Mathematics and Algorithms > Logic & Boolean Algebra > Boolean Computation >
Bitwise Operations
Mathematica can represent bit vectors of arbitrary length as integers, and uses highly optimized algorithms—including several original to Wolfram Research—to perform bitwise operations with maximal efficiency on all standard computer systems.
Bitwise Logic Operations
BitAnd  ▪ BitOr  ▪ BitXor  ▪ BitNot
Structural Bitwise Operations
Single-Bit Operations
BitSet  ▪ BitClear  ▪ BitGet
    
DigitCount total count of 0 or 1 bits
IntegerExponent number of trailing 0s
CellularAutomaton arbitrary local bitwise operations
    
IntegerDigits convert to a list of digits
FromDigits convert to an integer from a list of digits
TUTORIALS »
MORE ABOUT
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team