Appendix A: System Routines — Algebra Utilities
243
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
index_numeric_term
(continued)
Example:
If i indexes the internally-simplified expression
x^2 + 7 + 1 + x
then
index_numeric_term
(i) returns index(8).
If i indexes the internally-simplified expression
x^2 + x
then
index_numeric_term
(i) returns Float0Index if IS_ARITH_APPROX
is true and Integer0Index if IS_ARITH_APPROX is false.
If i indexes the internally-simplified expression
x^2 +
p
then
index_numeric_term
(i) returns Float0Index if IS_ARITH_APPROX
is true and Integer0Index if IS_ARITH_APPROX is false.
Boolean sum_has_modest_numeric_term (EStackIndex i)
/* i indexes a sum.
Returns TRUE if it does not have a top-level numeric term or if its
magnitude is < MAX_EXP_ARG. Otherwise returns FALSE.
*/
{ i = index_numeric_term (i);
return NULL_INDEX == i ||
FABS (estack_number_to_Float (i)) < MAX_EXP_ARG;
}