Appendix A: System Routines — Algebra Utilities
275
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_dependent_terms
Declaration:
void
push_dependent_terms
(EStackIndex
i
, EStackIndex
var
)
Category(ies):
Algebra Utilities
Description:
Pushes onto the estack the sum of all top-level syntactic terms of the
expression indexed by
i
that are dependent on the variable or kernel
indexed by
var
. If there are no dependent 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.
var
— Indexes the top tag of an internally-simplified variable or kernel.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_independent_terms, push_constant_terms,
push_nonconstant_terms, index_numeric_term
Example:
void push_dependent_terms (EStackIndex i, EStackIndex var)
/* Pushes onto the estack the sum of all terms of the expression
indexed by i that are dependent on the variable indexed by var.
*/
{ if (ADD_TAG == ESTACK (i))
{ push_dependent_terms (next_expression_index (--i), var);
if (is_independent_of (i, var))
return;
else
add_to_top (i);
}
else if (is_independent_of (i, var))
push0 ();
else
push_expression (i);
}