686
Appendix A: System Routines — Lists and Matrices
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_dot_add
Declaration:
void
push_dot_add
(EStackIndex
i
, EStackIndex
j
)
Category(ies):
Lists and Matrices, Math
Description:
Pushes the element by element sum of two internal tokenized arguments
onto the estack
Inputs:
i
— EStackIndex of the first internal tokenized argument.
j
— EStackIndex of the second internal tokenized argument.
Outputs:
Pushes the internal tokenized element by element sum of the two
arguments onto the estack.
Assumptions:
The arguments must have the same dimensions. They must be the same
length lists, or the same size matrices, or both be scalars.
Side Effects:
May cause estack expansion, heap compression, or throw an error if the
arguments are invalid.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also: push_dot_div, push_dot_mult, push_dot_sub
Example:
If m indexes the bolded tag in the list {a, 2, 0} as follows
END_TAG 0 NONNEGATIVE_INTEGER_TAG 2 1 NONNEGATIVE_INTEGER_TAG
A_VAR_TAG
LIST_TAG
and n indexes the bolded tag in the list {1, 1, 1} as follows
END_TAG 1 1 NONNEGATIVE_INTEGER_TAG 1 1 NONNEGATIVE_INTEGER_TAG 1 1
NONNEGATIVE_INTEGER_TAG
LIST_TAG
then
push_dot_add (m, n);
pushes the list {a + 1, 3, 1} onto the estack such that
top_estack
points to the bolded tag as
follows.
END_TAG 1 1 NONNEGATIVE_INTEGER_TAG 3 1 NONNEGATIVE_INTEGER_TAG 1 1
NONNEGATIVE_INTEGER_TAG A_VAR_TAG ADD_TAG
LIST_TAG