Appendix A: System Routines — EStack Arithmetic
503
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_sum
Declaration:
void
push_sum
(EStackIndex
i
, EStackIndex
j
)
Category(ies):
EStack Arithmetic
Description:
Pushes onto the estack the internally-simplified sum of the expressions
indexed by
i
and
j
. If one operand is a scalar and the other is a square
matrix, the scalar is distributed only over the diagonal of the matrix.
Inputs:
i, j
— Indexes to the top tags of internally-simplified algebraic
expressions, algebraic comparisons, or aggregates thereof.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: replace_top2_with_sum, push_difference, subtract_from_top,
replace_top2_with_difference, push_arg_plus_1, add1_to_top,
subtract1_from_top, add_to_top, push_arg_minus_1
Example:
void push_increment_degree (EStackIndex power, EStackIndex inc)
/* Pushes onto the estack factor_base (power) ^ (inc + factor_deg(power)) */
{ push_sum (inc, factor_exponent_index (power));
raise_to_top (factor_base_index (power));
}