486
Appendix A: System Routines — EStack Arithmetic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
negate_top
Declaration:
void
negate_top
(void)
Category(ies):
EStack Arithmetic
Description:
Replaces the expression indexed by
top_estack
with its
internally-simplified negative.
Inputs:
None
Outputs:
None
Assumptions: top_estack
points to the top tag of an internally-simplified algebraic
expression, algebraic comparison, or aggregate thereof.
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_negate_quantum_as_negint
Example:
void push_ceiling (EStackIndex i)
/* i indexes an internally-simplified algebraic expression or an aggregate thereof.
Pushes the equivalent expression (- floor (-i)) onto the estack.
*/
{ Access_AMS_Global_Variables;
EStackIndex old_top = top_estack;
push_negate (i);
i = top_estack;
push_floor (i);
delete_between (old_top, i);
negate_top ();
}