Appendix A: System Routines — Algebra Utilities
269
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
numeric_factor_index
(continued)
Example:
If i indexes the internally-simplified expression
3 * x^2 * y
then
numeric_factor_index
(i) returns index(3).
If i indexes the internally-simplified expression
x
then
numeric_factor_index
(i) returns Float1Index if IS_ARITH_APPROX
is true and Integer1Index if IS_ARITH_APPROX is false.
If i indexes the internally-simplified expression
p
* x
then
numeric_factor_index
(i) returns Float1Index if IS_ARITH_APPROX
is true and Integer1Index if IS_ARITH_APPROX is false.
If i indexes the internally-simplified expression
2 * x + 2
then
numeric_factor_index
(i) returns Float1Index if IS_ARITH_APPROX
is true and Integer1Index if IS_ARITH_APPROX is false.
/* Returns the index of a tagged integer or Float one. */
push_quantum (PI_TAG);
numeric_factor_index (top_estack);