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 #585 background imageLoading...
Page #585 background image
Appendix A: System Routines — Expression Evaluation /
Algebraic Simplification
543
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_approx
Declaration:
void
push_approx
(EStackIndex
i
)
Category(ies):
Expression Evaluation / Algebraic Simplification
Description:
Executes SET_ARITH_APPROX, then pushes a corresponding simplified
version of the expression onto the estack. The arithmetic mode is restored
to what it was upon entry to this subroutine.
Inputs:
i
Index to an expression.
Outputs:
None
Assumptions:
i
points to the top tag of an expression that does not have to be already
internally simplified, but can be.
Side Effects:
None
Availability:
On AMS 2.01 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: estack_number_to_Float
Example:
push_quantum_as_nonnegative_int (2u);
exponent = top_estack;
push_quantum (8u); /* Push variable x */
replace_top2_with_pow (exponent);
power = top_estack; /* x^2 */
push_quantum (PI_TAG);
replace_top2_with_prod (power);
product = top_estack; /* pi * x^2 */
push_quantum_as_nonnegative_int (5u); /* pi * x^2 + 5 */
push_approx (top_estack); /* 3.1415926536898 * x^2 + 5.0 */
/* Note: Whole-number exponents such as 2 are not approximated. */

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