Appendix A: System Routines — Algebra Utilities
lead_term_index
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 */
TI-89 / TI-92 Plus Developer Guide
(continued)
Not for Distribution
263
Beta Version January 26, 2001