290
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_substitute_simplify
Declaration:
void
push_substitute_simplify
(EStackIndex
i
, EStackIndex
j
,
EStackIndex
k
)
Category(ies):
Algebra Utilities
Description:
Pushes onto the estack the result of substituting the expression indexed by
k
for the expression indexed by
j
in the expression indexed by
i
, and
simplifying the result.
Inputs:
i
,
j, k
— Indices of the top tags of expressions.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.04 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_subst_no_simp, push_lim
Example:
push_quantum (9u);
k = top_estack; /* k -> variable y */
push_quantum (8u);
j = top_estack; /* j -> variable x */
push_quantum_as_nonnegative_int(2u);
exponent = top_estack;
raise_to_top (j);
power = top_estack; /* x^2 */
push_quantum_as_nonnegative_int(2u);
exponent = top_estack;
raise_to_top (k); /* y^2 */
replace_top2_with_difference (power); /* top_estack -> x^2 - y^2 */
push_substitute_simplify (top_estack, j, k); /* Pushes a zero. */