Appendix A: System Routines — Algebra Utilities
263
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
lead_term_index
(continued)
Example:
Boolean has_constant_term (EStackIndex i)
/* Returns TRUE if the expression indexed by i has a nonzero top-level
constant term. Otherwise returns FALSE.
*/
{ while (! is0 (i))
if (is_constant (lead_term_index (i)))
return TRUE;
else
i = reductum_index (i);
return FALSE;
} /* end has_constant_term */