Appendix A: System Routines — Math
837
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_summation
Declaration:
void
push_summation
(EStackIndex
i
, EStackIndex
ki
, EStackIndex
j
,
EStackIndex
k
)
Category(ies):
Math
Description:
Expression
i
is simplified under the influence of a temporary “|
ki
≥
j
and
ki
≤
k
.” Pushes
Σ
(
i
,
ki
,
j
,
k
) onto the estack. The summand
i
must be
unsimplified for examples such as
Σ
(rand(9), . . . ) to have the intended
effect.
Inputs:
i
— Index of the top tag of an algebraic expression, algebraic
comparison, or aggregate thereof.
ki
— Index of the top tag of a variable.
j, k
— Indices of the top tags of internally-simplified expressions.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_extended_product
Example:
/* Pushes
Σ
(x, x, 1, y) -> y * (y + 1)/2 */
push_quantum (9u);
k = top_estack; /* k -> variable y */
push_quantum_as_nonnegative_int (1u);
j = top_estack; /* j -> 1 */
push_quantum (8u); /* top_estack -> variable x */
push_summation (top_estack, top_estack, j, k);