Appendix A: System Routines — Math
797
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_make_proper
Declaration:
void
push_make_proper
(EStackIndex
k
)
Category(ies):
Math
Description:
Pushes onto the estack the equivalent internally-simplified sum of the
quotient and proper rational term, with the latter term shallowest.
Inputs:
k
— Indexes an internally-simplified improper rational expression.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: is_term_improper
Example:
push_quantum (8u);
numerator = top_estack; /* Push variable x */
push_sum (numerator, Integer1Index); /* Push x + 1 */
replace_top2_with_ratio (numerator); /* top_estack -> x/(x + 1) */
if (is_term_improper (top_estack))
push_make_proper (top_estack); /* Pushes 1 – 1/(x + 1) */