Appendix A: System Routines — EStack Arithmetic
501
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_reciprocal
Declaration:
void
push_reciprocal
(EStackIndex
i
)
Category(ies):
EStack Arithmetic, Math
Description:
Pushes the internally-simplified reciprocal of the expression indexed by
i
onto the estack.
Inputs:
i
— Index of the top tag of an internally-simplified algebraic expression,
algebraic comparison, or aggregate thereof.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: divide_top, replace_top2_with_ratio, push_ratio,
replace_top_with_reciprocal
Example:
void replace_top_with_reciprocal (void)
/* Replaces the top expression on the estack with its reciprocal. */
{ Access_AMS_Global_Variables;
EStackIndex old_top = top_estack;
push_reciprocal (old_top);
delete_expression (old_top);
}