EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Developer's Guide

Texas Instruments TI-89
1398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #550 background imageLoading...
Page #550 background image
508
Appendix A: System Routines — EStack Arithmetic
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
replace_top2_with_prod
Declaration:
void
replace_top2_with_prod
(EStackIndex
i
)
Category(ies):
EStack Arithmetic
Description:
Replaces the top two expressions of the estack with their
internally-simplified product. If both operands are conforming matrices, it is
the matrix product rather than an element-wise product.
Inputs:
i
Index to the top tag of the deeper of the top two expressions of the
estack. These top two expressions are internally-simplified
algebraic expressions, algebraic comparisons, or aggregates
thereof.
Outputs:
None
Assumptions:
None
Side Effects:
None
Availability:
On AMS 2.02 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: times_top, push_product, push_negate, negate_top
Example:
Boolean is_odd_expression (EStackIndex i)
/* Returns TRUE if the expression indexed by i is recognized as odd. */
{ Access_AMS_Global_Variables;
EStackIndex old_top;
Boolean b;
if (SIGN_TAG == ESTACK (i))
return IS_DOMAIN_REAL && is_real (i - 1u);
old_top = top_estack;
push_arg_minus_1 (i);
i = top_estack;
push_reciprocal_of_quantum (2u);
replace_top2_with_prod (i);
b = integer_non_unknown (top_estack) > 0;
top_estack = old_top;
return b;
}

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals