Appendix A: System Routines — Algebra Utilities
293
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
re_index
Declaration:
EStackIndex
re_index
(EStackIndex
k
)
Category(ies):
Algebra Utilities
Description:
If
k
indexes an IM_RE_TAG, returns the index of the second expression
below it, which is the real part for internally-simplified algebraic
expressions. Otherwise returns
k
.
Inputs:
k
— Indexes the top tag of an internally-simplified algebraic expression,
an algebraic comparison, or an aggregate thereof.
Outputs:
If
k
indexes an IM_RE_TAG, returns the index of the second expression
below it, which is the real part for internally-simplified algebraic
expressions. Otherwise returns
k
.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_im, replace_top2_with_imre
Example:
push_expression (Integer1Index);
real_part = top_estack;
push_expression (FloatPiIndex);
replace_top2_with_imre (real_part);
re_index (top_estack); /* Returns the index of a tagged integer 1 */