Appendix A: System Routines — Math
779
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_expand
Declaration:
void
push_expand
(EStackIndex
i
, EStackIndex
ki
,
Boolean
use_part_frac
)
Category(ies):
Math
Description:
Pushes onto the estack the internally-simplified equivalent of the
expression indexed by
i
, expanded with respect to the variable or kernel
indexed by
ki
, or with respect to all variables and kernels if
ki
is equal to NULL_INDEX. If
use_part_frac
is FALSE, rational
expressions are not expanded beyond proper fractions. Otherwise, partial
fraction expansion is also done, using factorization over the real rather than
complex numbers.
Inputs:
i
— Indexes the top tag of an internally-simplified algebraic
expression, algebraic comparison, or aggregate
thereof.
ki
— Indexes NULL_INDEX or the top tag of an
internally-simplified variable or a kernel.
use_part_frac
— TRUE if partial fraction expression can be used.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
None
Example:
push_quantum_as_nonnegative_int (2u);
exponent = top_estack;
push_quantum (8u); /* Push variable x */
add1_to_top (); /* top_estack -> x + 1 */
replace_top2_with_pow (exponent); /* top_estack -> (x + 1)^2 */
push_expand (top_estack, NULL_INDEX, FALSE); /* push x^2 + 2x + 1 */