EasyManua.ls Logo

Texas Instruments TI-89

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix A: System Routines — Math
823
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_rotate
(continued)
Example:
If m indexes the bolded tag in the integer 256 (0b100000000) as follows
0 1 2
NONNEGATIVE_INTEGER_TAG
and n indexes the bolded tag in the integer -1 as follows
1 1
NEGATIVE_INTEGER_TAG
then
push_rotate (m, n);
pushes 128 (0b10000000) onto the estack such that
top_estack
points to the bolded tag as
follows.
128 1
NONNEGATIVE_INTEGER_TAG
If m indexes the bolded tag in the list {a, b, c} as follows
END_TAG C_VAR_TAG B_VAR_TAG A_VAR_TAG
LIST_TAG
and n indexes the bolded tag in the integer one as follows
1 1
NONNEGATIVE_INTEGER_TAG
then
push_rotate (m, n);
pushes the left rotated list {b, c, a} onto the estack such that
top_estack
points to the bolded
tag as follows.
END_TAG A_VAR_TAG C_VAR_TAG B_VAR_TAG
LIST_TAG
If m indexes the bolded tag in the string “hello” as follows
0 h e l l o 0
STR_DATA_TAG
and n indexes the bolded tag in the floating-point number -3. as follows
0xC0 0x00 0x30 0x00 0x00 0x00 0x00 0x00 0x00
FLOAT_TAG
then
push_rotate (m, n);
pushes the right rotated string “llohe“ onto the estack such that
top_estack
points to the bolded
tag as follows.
0 l l o h e 0
STR_DATA_TAG

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals