Appendix A: System Routines — Expression Evaluation /
Algebraic Simplification
553
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
replace_top_with_post_simplified
Declaration:
void
replace_top_with_post_simplified
(EStackIndex
old_top
)
Category(ies):
Expression Evaluation / Algebraic Simplification
Description:
Replaces the internal-tokenized expression on top of the stack with its
external-tokenized form.
Inputs:
old_top
— EStackIndex of position below the internal-tokenized
expression on top of the expression stack.
Outputs:
None
Assumptions:
None
Side Effects:
May expand expression stack, cause heap compression, or throw an error.
Availability:
On AMS 2.03 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_simplify_statements, push_simplify, push_internal_simplify
Example:
If the internal-tokenized form of the complex expression a + b
†
i
, which is
A_VAR_TAG B_VAR_TAG IM_RE_TAG, is on top of the expression stack, then
replace_top_with_post_simplified (next_expression_index (top_estack));
replaces that expression with its external-tokenized form, which is
A_VAR_TAG B_VAR_TAG I_TAG MULTIPLY_TAG ADD_TAG.