944
Appendix A: System Routines — Solver
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_czeros
Declaration:
void
push_czeros
(EStackIndex
k
, EStackIndex
vi
)
Category(ies):
Solver
Description:
If
vi
is one variable or guess, pushes onto the estack a list of zero or more
real or unreal values that make the expression(s) indexed by
k
equal to
zero when substituted for the variable.
Otherwise pushes an empty list if the function could not find any
simultaneous zeros of the list of expressions indexed by
k
.
Otherwise pushes a matrix of real and/or unreal values, with each column
representing the corresponding element variable of
vi
, and each row
representing an alternate list of corresponding values that make all of the
expressions in the list indexed by
k
equal to zero.
All fractional powers are interpreted using the principal branch.
Issues XR_USE_CSOLVE_WARN when there are additional zeros that
cannot be expressed in this form.
If invoked via
push_internal_simplify
,
vi
and
k
are simplified to deepest
variable(s).
Inputs:
k
— Index of the top tag of an algebraic expression or a list thereof.
vi
— Indexes of the top tag of 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_solve, push_csolve, push_zeros, push_nSolve
Example:
push_quantum_as_nonnegative_int (2u);
exponent = top_estack;
push_quantum (8u); /* Push variable x */
replace_top2_with_pow (exponent); /* top_estack -> x^2 */
add1_to_top ();
expression = top_estack; /* top_estack -> x^2 + 1 */
push_quantum (8u); /* push variable x */
push_czeros (expression, top_estack); /* top_estack -> {
i
, -
i
} */