Appendix A: System Routines — Math
781
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_extended_prod
Declaration:
void
push_extended_prod
(EStackIndex
i
, EStackIndex
ki
,
EStackIndex
j
, EStackIndex
k
)
Category(ies):
Math
Description:
Pushes onto the estack the product of the expression indexed by
i
, for the
variable indexed by
ki
ranging from the value indexed by
j
through the
value indexed by
k
. The prodand must be UNSIMPLIFIED for examples
such as
p
(rand(9), . . . ) to have the intended effect.
Inputs:
i
— Indexes the top tag of a prodand, which can be an algebraic
expression, an algebraic comparison, or an aggregate thereof.
ki
— Indexes the top tag of a variable.
j
,
k
— Indices of algebraic expressions.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
/* Pushes 24u FACTORIAL_TAG (n!) onto the estack */
push_quantum (24u);
upper_limit = top_estack; /* Push variable n */
push1();
lower_limit = top_estack;
push_quantum (21u);
index_var = top_estack; /* Push variable k */
push_extended_prod (index_var, index_var, lower_limit, upper_limit);