798
Appendix A: System Routines — Math
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_max
Declaration:
void
push_max
(EStackIndex
i
, EStackIndex
vi
)
Category(ies):
Math
Description:
If invoked via
push_internal_simplify
,
vi
and
i
are simplified to deepest
variable. Pushes onto the estack a Boolean expression specifying where
expression
i
achieves its global maximum with respect to variable
vi
,
subject to any current
NG_such_that
constraint.
Inputs:
i
— Indexes the top tag of an internally-simplified algebraic expression.
vi
— Indexes the top tag of a variable.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_min, did_push_approx_inflection_point, push_min1,
push_min2, push_max1, push_max2
Example:
push_quantum_as_nonnegative_int (2u);
exponent = top_estack;
push_quantum (8u); /* Push variable x */
replace_top2_with_pow (exponent);
negate_top ();
i = top_estack; /* i -> -x^2 */
push_quantum (8u);
push_max (i, top_estack); /* Pushes x=0 */