|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Discrete Mathematics
>
Boolean Computation
>
Bitwise Operations
>
BitNot
BUILT-IN MATHEMATICA SYMBOL
BitNot
BitNot[n]
gives the bitwise NOT of the integer n.
DetailsDetails
- 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
. - BitNot automatically threads over lists.
New in 4
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
