Texas Instruments TI89 Developer Guide - Page 864
push_left, push_mid, push_right, push_rotate
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 864 highlights
822 Appendix A: System Routines - Math 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 - EStackIndex of an integer, a list, or a string. j - EStackIndex of an integer or whole number float. 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 (continued) TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001