Push_Rotate - Texas Instruments TI-89 Developer's Manual

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

Advertisement

822

push_rotate

Declaration:
void push_rotate (EStackIndex i , EStackIndex j )
Category(ies):
Math
Description:
Rotates the elements of an integer, a list, or a string to the left or right.
Inputs:
i
j
Outputs:
Pushes a rotated copy of i onto the estack.
If i is an integer, then the bits are rotated.
If i is a list, the elements of the list are rotated.
If i is a string, the characters of the string are rotated.
If j is positive, the rotation is that number of places to the left.
If j is negative, the rotation is that number of places to the right.
Each time the input is rotated left, the leftmost element (integer bit, list
element, string character) that is pushed out is moved to the rightmost
position.
Each time the input is rotated right, the rightmost element that is pushed
out is moved to the leftmost position.
Assumptions:
None
Side Effects:
May expand the estack, cause heap compression, or throw errors if
arguments are invalid
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
push_left, push_mid, push_right, push_shift
TI-89 / TI-92 Plus Developer Guide
— EStackIndex of an integer, a list, or a string.
— EStackIndex of an integer or whole number float.
(continued)
Not for Distribution
Appendix A: System Routines — Math
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents