EasyManua.ls Logo

Texas Instruments TI-89 - Push_Cumsum

Texas Instruments TI-89
1398 pages
Print Icon
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...
682
Appendix A: System Routines — Lists and Matrices
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_cumsum
Declaration:
void
push_cumsum
(EStackIndex
mat_list_indx
)
Category(ies):
Lists and Matrices, Math
Description:
Pushes onto the estack the cumulative sum of the matrix or list indexed by
mat_list_indx
. For a list the result is a list with each element being the
running sum of all of the elements. For a matrix the result is a matrix with
each column being the running sum of all of the elements in that column.
Inputs:
mat_list_indx
Indexes the input list or matrix.
Outputs:
None
Assumptions:
None
Side Effects:
May expand expression stack, cause heap compression, or throw an error.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also: push_sumlist
Example:
EStackIndex lIndx;
BYTE lName[] = {0,'c','s','u','m','1',0};
/* push test list */
push_quantum(END_TAG);
push_Float(1.5);
push_Float(2.5);
push1();
push_quantum(LIST_TAG);
lIndx = top_estack;
/* calculate the cumulative sum: {1, 3.5, 5.0} */
push_cumsum( lIndx );
/* Store to CSUM1 */
VarStore( lName+6, STOF_ESI, 0, top_estack );
/* Now push the sum of all of the elements in the list: 5.0 */
push_sumlist( lIndx );

Table of Contents

Other manuals for Texas Instruments TI-89

Related product manuals