292
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_var_kern_tail
Declaration:
void
push_var_kern_tail
(EStackIndex
i
)
Category(ies):
Algebra Utilities
Description:
Pushes onto the estack an END_TAG, then the most main variable or
kernel, then the next most main variable or kernel, etc.
Inputs:
i
— Indexes the top tag of an internally-simplified algebraic expression.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: main_gen_var_index, next_var_or_kernel_index,
has_different_variable
Example:
push_quantum (8u); /* Push variable x */
add1_to_top ();
partial_sum = top_estack; /* x + 1 */
push_quantum (9u); /* Push variable y */
push_quantum (LN_TAG);
replace_top2_with_sum (partial_sum); /* top_estack = x + ln(y) + 1 */
push_var_kern_tail (top_estack);
push_quantum (LIST_TAG); /* top_estack -> {ln(y), x} */