Appendix A: System Routines — Algebra Utilities
289
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_subst_no_simp
Declaration:
void
push_subst_no_simp
(EStackIndex
i
, EStackIndex
j
,
EStackIndex
k
)
Category(ies):
Algebra Utilities
Description:
Pushes onto the estack without further simplification a copy of the
expression indexed by
i
in which subexpressions that are identical to the
expression indexed by
j
are replaced by the expression indexed by
k
.
Inputs:
i, j, k
— Indices the top tags of expressions.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_substitute_simplify
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_subst_no_simp (top_estack, j, k); /* Pushes y^2 - y^2 */