Push0 - Texas Instruments TI-89 Developer's Manual

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

Advertisement

504

push0

Declaration:
void push0 (void)
Category(ies):
EStack Arithmetic
Description:
Pushes a tagged float 0.0 if IS_ARITH_APPROX.
Otherwise pushes a tagged big-integer 0.
Inputs:
None
Outputs:
None
Assumptions:
None
Side Effects:
None
On AMS 2.00 and higher.
Availability:
TI-89 / TI-92 Plus
Differences:
None
See Also:
push1, push_pi, push_pi_on_quantum
Example:
void push_dense_poly_eval (EStackIndex i, EStackIndex j)
/* i indexes a list of polynomial coefficients in descending order of the
exponents of a variable, and j indexes a value for that variable.
Pushes the value of the polynomial onto the estack.
*/
{
if (LIST_TAG == ESTACK(i))
{
--i;
push0 ();
while (END_TAG != ESTACK(i))
{
times_top (j);
add_to_top (i);
i = next_expression_index (i);
}
}
else if (is_constant (i))
{
ER_THROW (ER_DOMAIN);
}
else
{
push_expression (j);
push_expression (i);
push_quantum (DENSE_POLY_EVAL_TAG);
}
}
TI-89 / TI-92 Plus Developer Guide
Appendix A: System Routines — EStack Arithmetic
Not for Distribution
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