Appendix A: System Routines — Solver
945
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_nSolve
Declaration:
void
push_nSolve
(EStackIndex
i
, EStackIndex
ki
)
Category(ies):
Solver
Description:
If invoked via
push_internal_simplify
,
ki
and
i
are simplified to deepest
variable, and the simplification of
i
is done under the temporary influence of
SET_PARTIAL_SIMPLIFY to avoid costly polynomial expansions,
polynomial GCDs, etc.
Pushes the input if these conditions are not met.
Otherwise pushes onto the estack TRUE_TAG, FALSE_TAG or an
equation specifying one approximate solution of the form
ki
= float, found
by iterative methods.
Takes into account bounds specified by
NG_such_that_index
.
Inputs:
i
— Indexes the top tag of an internally-simplified equation depending
only on the variable in
ki
.
ki
— Indexes the top tag of a variable or an equation of the form
variable = constant, representing an initial guess.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_solve, push_csolve, push_zeros, push_czeros
Example:
push_Float (4.0);
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; /* x^2 = 4 */
push_quantum (8u); /* Push variable x */
push_nSolve (equation, top_estack); /* Pushes 2.0 */