Shift Catalog - Texas Instruments Voyage 200 User Manual

Graphing calculator
Hide thumbs Also See for Voyage 200:
Table of Contents

Advertisement

shift()
CATALOG
integer1
shift(
Shifts the bits in a binary integer. You can enter
integer1
automatically to a signed, 32-bit binary form. If
the magnitude of
form, a symmetric modulo operation brings it
within the range.
If
#ofShifts
#ofShifts
default is ë 1 (shift right one bit).
In a right shift, the rightmost bit is dropped and 0
or 1 is inserted to match the leftmost bit. In a left
shift, the leftmost bit is dropped and 0 is inserted
as the rightmost bit.
For example, in a right shift:
0b00000000000001111010110000110101
Inserts 0 if leftmost bit is 0,
or 1 if leftmost bit is 1.
produces:
0b00000000000000111101011000011010
The result is displayed according to the
mode. Leading zeros are not shown.
list1
#ofShifts
[
shift(
,
Returns a copy of
#ofShifts
If
#ofShifts
#ofShifts
default is ë 1 (shift right one element).
Elements introduced at the beginning or end of
by the shift are set to the symbol "undef".
list
string1
shift(
Returns a copy of
#ofShifts
If
#ofShifts
#ofShifts
default is ë 1 (shift right one character).
Characters introduced at the beginning or end of
string
874
) ⇒ ⇒ ⇒ ⇒
#ofShifts
integer
[
]
,
in any number base; it is converted
is too large for this
integer1
is positive, the shift is to the left. If
is negative, the shift is to the right. The
Each bit shifts right.
) ⇒ ⇒ ⇒ ⇒
list
]
shifted right or left by
list1
elements. Does not alter
is positive, the shift is to the left. If
is negative, the shift is to the right. The
) ⇒ ⇒ ⇒ ⇒
#ofShifts
string
[
,
]
shifted right or left by
string1
characters. Does not alter
is positive, the shift is to the left. If
is negative, the shift is to the right. The
by the shift are set to a space.
In Bin base mode:
shift(0b1111010110000110101) ¸
shift(256,1) ¸
In Hex base mode:
shift(0h78E) ¸
shift(0h78E, ë 2) ¸
shift(0h78E,2) ¸
Important: To enter a binary or hexadecimal
number, always use the 0b or 0h prefix (zero, not the
letter O).
Dropped
Base
In Dec base mode:
shift({1,2,3,4}) ¸
.
list1
shift({1,2,3,4}, ë 2) ¸
shift({1,2,3,4},1) ¸
shift("abcd") ¸
shift("abcd", ë 2) ¸
string1
.
shift("abcd",1) ¸
Appendix A: Functions and Instructions
0b111101011000011010
0b1000000000
0h3C7
0h1E3
0h1E38
{undef 1 2 3}
{undef undef 1 2}
{2 3 4 undef}
" abc"
" ab"
"bcd "

Advertisement

Table of Contents
loading

This manual is also suitable for:

Voyage 200 - voyage 200 calculator

Table of Contents