Appendix A: System Routines — Lists and Matrices
705
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_prodlist
Declaration:
void
push_prodlist
(EStackIndex
i
)
Category(ies):
Lists and Matrices, Math
Description:
Pushes onto the estack the product of the matrix or list elements indexed
by
i.
For a list the result is an expression which is the product of all
elements of the list. For a matrix the result is a row vector containing the
products of the matrix columns.
Inputs:
i
— 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_cumsum, push_sumlist
Example:
If j indexes at the bolded tag the matrix [1, 2; 3, 4] as follows
END_TAG END_TAG 4 1 NONNEGATIVE_INTEGER_TAG 3 1
NONNEGATIVE_INTEGER_TAG LIST_TAG END_TAG 2 1 NONNEGATIVE_INTEGER_TAG
1 1 NONNEGATIVE_INTEGER_TAG LIST_TAG
LIST_TAG
then
push_prodlist (j);
pushes a row vector containing the column products of the matrix, [3, 8], onto the estack such
that
top_estack
points to the bolded tag as follows.
END_TAG END_TAG 8 1 NONNEGATIVE_INTEGER_TAG 3 1
NONNEGATIVE_INTEGER_TAG LIST_TAG
LIST_TAG