Push_Negate - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — EStack Arithmetic

push_negate

Declaration:
void push_negate (EStackIndex i )
Category(ies):
EStack Arithmetic
Description:
Pushes onto the estack the internally-simplified negative of the expression
indexed by i .
i
Inputs:
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also:
negate_top
Example:
Boolean is_symmetric (EStackIndex i, EStackIndex var)
/* Returns TRUE if it can determine that the expression indexed by i is symmetric
with respect to the variable indexed by var. Otherwise returns FALSE.
*/
{
Access_AMS_Global_Variables;
EStackIndex old_top = top_estack;
push_negate (var);
push_substitute_simplify (i, var, top_estack);
subtract_from_top (i);
if (is0 (top_estack))
{
top_estack = old_top;
return TRUE;
}
top_estack = old_top;
return FALSE;
}
TI-89 / TI-92 Plus Developer Guide
— Index of the top tag of an internally-simplified algebraic expression,
algebraic comparison, or aggregate thereof.
Not for Distribution
493
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents