238
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
im_index
Declaration:
EStackIndex
im_index
(EStackIndex
k
)
Category(ies):
Algebra Utilities
Description:
If
k
indexes an IM_RE_TAG, returns the index of the expression below it,
which is the imaginary part for internally-simplified algebraic expressions.
Otherwise returns the index of an integer or float 0, depending on the
arithmetic mode.
Inputs:
k
— Indexes the top tag of an internally-simplified algebraic expression.
Outputs:
If
k
indexes an IM_RE_TAG, returns the index of the expression below it,
which is the imaginary part for internally-simplified algebraic expressions.
Otherwise returns the index of an integer or float 0, depending on the
arithmetic mode.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: re_index, replace_top2_with_imre
Example:
push_expression (Integer1Index);
real_part = top_estack;
push_expression (FloatPiIndex);
replace_top2_with_imre (real_part);
im_index (top_estack); /* Returns the index of a float pi */