284
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_nonconstant_terms
Declaration:
void
push_nonconstant_terms
(EStackIndex
i
)
Category(ies):
Algebra Utilities
Description:
Pushes onto the estack the sum of all syntactic terms of the expression
indexed by
i
that include variables. If there are no nonconstant terms,
pushes Float0 if IS_ARITH_APPROX is true and Integer0 if
IS_ARITH_APPROX is false.
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: push_constant_terms, push_dependent_terms,
push_independent_terms, index_numeric_term,
Example:
push_quantum (PI_TAG);
add1_to_top (); /* partial sum = top_estack */
push_quantum (8u); /* push variable x */
replace_top2_with_sum (foo); /* top-estack -> x + pi + 1 */
push_nonconstant_terms (top_estack); /* Pushes x */