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 > Bitwise Operations >
Mathematica > Mathematics and Algorithms > Logic & Boolean Algebra > Boolean Computation > Bitwise Operations >

BitNot

BitNot[n]
gives the bitwise NOT of the integer n.
  • Integer mathematical function, suitable for both symbolic and numerical manipulation.
  • BitNot[n] turns ones into zeros and vice versa in the binary bit representation of n.
  • Integers are assumed to be represented in two's complement form, with an unlimited number of digits, so that BitNot[n] is simply equivalent to -1-n.
  • BitNot automatically threads over lists.
-1 corresponds to having all bits on:
Basic symbolic simplifications are done automatically:
Make a shifted version of the rule 45 cellular automaton:
New in 4
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team