298
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
replace_top2_with_imre
Declaration:
void
replace_top2_with_imre
(EStackIndex
i
)
Category(ies):
Algebra Utilities
Description:
The top two expressions on the estack are internally-simplified algebraic
expressions, and
j
indexes the deeper of these two expressions. If either is
Float and the other is numeric, replaces with 0.0 either that has magnitude
<=
IM_re_tol
†
(magnitude of its companion). Then deletes the top
expression if it is zero, otherwise pushing an IM_RE_TAG.
Inputs:
i
— Indexes the top tag of the internally-simplified algebraic expression
next_expression_index
(
top_estack
).
Outputs:
None
Assumptions:
The top two expressions are internally-simplified algebraic expressions.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
/* Replaces the top two expressions with the expression 3.7 + 5.2
i
*/
push_Float (3.7);
i = top_estack;
push_Float (5.2);
replace_top2_with_imre (i);