244
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
index_of_lead_base_of_lead_term
Declaration:
EStackIndex 
index_of_lead_base_of_lead_term
 (EStackIndex 
i
)
Category(ies):
Algebra Utilities
Description:
Returns the index of the lead base of the lead term of any algebraic
expression indexed by 
i
.
Inputs:
i
— Index of the top tag of an algebraic expression.
Outputs:
Returns the index of the lead base of the lead term of any algebraic
expression indexed by 
i
.
Assumptions:
None
Side Effects:
None
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: factor_base_index, lead_base_index, lead_term_index
Example:
push_quantum_as_nonnegative_int (2u);
exponent = top_estack;
push_quantum (8u);    /* Push variable x */
replace_top2_with_pow (exponent);
xsq = top_estack;    /* top_estack -> x^2 */
push_quantum (9u);   /* Push variable y */
replace_top2_with_prod (xsq);  /* top_estack -> x^2 * y  */
index_of_lead_base_of_lead_term (top_estack);
   /* : Returns index of variable x */
add1_to_top (top_estack);      /* top_estack -> x^2 * y + 1  */
index_of_lead_base_of_lead_term (top_estack);
   /* : Returns index of variable x */