Appendix A: System Routines — EStack Arithmetic
475
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
is_complex_Float
Declaration:
Boolean
is_complex_Float
(IndexConstQuantum
i
)
Category(ies):
EStack Arithmetic
Description:
Determines whether the expression indexed by
i
is a complex float.
Inputs:
i
— Index to an expression.
Outputs:
Returns TRUE if
i
indexes a FLOAT_TAG or an IM_RE_TAG on top of two
expressions having float tags. Otherwise returns FALSE.
Assumptions:
i
indexes the top tag of an expression.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: is_complex_number
Examples:
Boolean is_cFloat_agg (EStackIndex i)
/* Returns TRUE if the expression indexed by i contains only floats
and/or complex floats. Otherwise returns FALSE. */
{ return is_complex_Float(i) ||
LIST_TAG == ESTACK(i) && all_tail (&is_cFloat_agg, i-1u);
}