Appendix A: System Routines — EStack Arithmetic
is_complex_number
Declaration:
Boolean is_complex_number (IndexConstQuantum i )
Category(ies):
EStack Arithmetic
Description:
Determines whether i indexes a complex number.
Inputs:
i
Outputs:
Returns TRUE if i indexes a numeric tag or an IM_RE_TAG on top of two
expressions having numeric tags. Otherwise returns FALSE.
i indexes the top tag of an expression.
Assumptions:
Side Effects:
None
On AMS 1.05 and higher.
Availability:
TI-89 / TI-92 Plus
Differences:
None
See Also:
is_complex_float
Examples:
push_Float (3.7);
is_complex_number (top_estack);
real_part = top_estack;
push_quantum_as_nonnegative_int (5u);
replace_top2_with_imre (real_part);
is_complex_number (top_estack);
push_quantum (PI_TAG);
is_complex_number (top_estack);
TI-89 / TI-92 Plus Developer Guide
— Index of an expression.
/* Returns TRUE */
/* Returns TRUE */
/* Returns FALSE */
Not for Distribution
477
Beta Version January 26, 2001