EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

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
Page #724 background imageLoading...
Page #724 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals