|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Discrete Mathematics
>
Boolean Computation
>
Bitwise Operations
>
BitShiftRight
BUILT-IN MATHEMATICA SYMBOL
BitShiftRight
BitShiftRight[n, k]
shifts the binary bits in the integer n to the right by k places, dropping bits that are shifted past the unit's position on the right.
BitShiftRight[n]
shifts one bit to the right.
DetailsDetails
- BitShiftRight[n, k] is equivalent to IntegerPart[n/2^k].
- Negative values of k shift to the left.
New in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
