Texas Instruments TI-89 Titanium Short User Manual page 236

Hide thumbs Also See for TI-89 Titanium:
Table of Contents

Advertisement

rotate()
MATH/Base menu
integer1
rotate(
Rotates 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
#of Rotations
left. If
the right. The default is ë 1 (rotate right one bit).
For example, in a right rotation:
Each bit rotates right.
0b00000000000001111010110000110101
produces:
0b10000000000000111101011000011010
The result is displayed according to the
mode.
list1
#ofRotations
[
rotate(
,
Returns a copy of
Rotations
If
#of Rotations
left. If
the right. The default is ë 1 (rotate right one
element).
string1
rotate(
Returns a copy of
#of Rotations
If
#of Rotations
left. If
the right. The default is ë 1 (rotate right one
character).
round()
MATH/Number menu
expression1
round(
Returns the argument rounded to the specified
number of digits after the decimal point.
must be an integer in the range 0–12. If
digits
is not included, returns the argument
digits
rounded to 12 significant digits.
Note: Display digits mode may affect how this is
displayed.
list1
round(
[,
Returns a list of the elements rounded to the
specified number of digits.
230
) ⇒
[
#ofRotations
]
integer
,
in any number base; it is converted
is too large for this
integer1
is positive, the rotation is to the
is negative, the rotation is to
#of Rotations
Rightmost bit rotates to leftmost.
) ⇒
list
]
rotated right or left by
list1
elements. Does not alter
is positive, the rotation is to the
is negative, the rotation is to
#of Rotations
) ⇒
#ofRotations
string
[
,
]
rotated right or left by
string1
characters. Does not alter
is positive, the rotation is to the
#of Rotations
is negative, the rotation is to
]) ⇒
digits
expression
[,
]) ⇒
digits
list
In Bin base mode:
rotate(0b1111010110000110101)
¸
0b10000000000000111101011000011010
rotate(256,1) ¸ 0b1000000000
In Hex base mode:
rotate(0h78E) ¸
rotate(0h78E,ë 2) ¸0h800001E3
rotate(0h78E,2) ¸
Important: To enter a binary or hexadecimal
number, always use the 0b or 0h prefix (zero,
not the letter O).
Base
In Dec base mode:
#of
rotate({1,2,3,4}) ¸
list1
.
rotate({1,2,3,4},ë 2) ¸
rotate({1,2,3,4},1) ¸
rotate("abcd") ¸
rotate("abcd",ë 2) ¸
.
string1
rotate("abcd",1) ¸
round(1.234567,3) ¸
round({p,‡(2),ln(2)},4) ¸
Appendix A: Functions and Instructions
0h1E38
{4 1 2 3}
{3 4 1 2}
{2 3 4 1}
"dabc"
"cdab"
"bcda"
{3.1416 1.4142 .6931}
0h3C7
1.235

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents