266
Appendix A: System Routines — Algebra Utilities
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
map_unary_over_comparison
Declaration:
void
map_unary_over_comparison
(void (*
proc1
) (EStackIndex),
EStackIndex
comparison
);
Category(ies):
Algebra Utilities
Description:
Applies
proc1
to the deeper argument of
comparison
, then the shallower
argument of
comparison
, then pushes the top tag of
comparison
.
Beware that without warning this function might lose solutions (such as by
squaring both sides of an inequality) or introduce spurious solutions (such
as by squaring both sides of an equation).
Inputs:
proc1
— Address of a procedure that takes one EStackIndex
argument, pushes an expression onto the estack, then
returns nothing.
comparison
— Index of the top tag of a simplified equation or inequality.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: map_tail, all_tail, any_tail
Example:
If
comparison
indexes n>3, then
map_unary_over_comparison
(&push_factorial, comparison)
pushes the comparison n! > 6.
push_quantum_as_nonnegative_int (3u);
push_quantum (8u); /* push variable x */
push_quantum (EQUATION_TAG);
map_unary_over_comparison (&push_factorial, top_estack);
/* Pushes x != 6 onto the estack. */