946
Appendix A: System Routines — Solver
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_solve
Declaration:
void
push_solve
(EStackIndex
i
, EStackIndex
vi
)
Category(ies):
Solver
Description:
If invoked via
push_internal_simplify
,
ki
and
i
are simplified to deepest
variable(s). Pushes onto the estack another Boolean expression that
describes the real solution set, using the real-branch of any fractional
powers.
Inputs:
i
— Indexes the top tag of an internally-simplified Boolean expression
that is usually one or more equations and/or inequalities joined by
“and” operators.
vi
— Indexes a variable, an equation of the form variable = constant
representing an initial guess, or a list of variables and/or such
initial guesses.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_csolve, push_nSolve, push_zeros, push_czeros
Example:
push_quantum_as_nonnegative_int(4u);
right_side = top_estack;
push_quantum_as_nonnegative_int(2u);
exponent = top_estack;
push_quantum (8u); /* Push variable x */
replace_top2_with_pow (exponent); /* top_estack -> x^2 */
push_equals (top_estack, right_side);
equation = top_estack; /* equation -> x^2 = 4 */
push_quantum (8u); /* Push variable x */
push_solve (equation, top_estack); /* Pushes x = -2 or x = 2 */