EasyManuals Logo

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 #594 background imageLoading...
Page #594 background image
Appendix A: System Routines — Expression Evaluation /
552
Algebraic Simplification
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_simplify_statements
Declaration:
void
push_simplify_statements
(EStackIndex
i
)
Category(ies):
Expression Evaluation / Algebraic Simplification
Description:
The top level entry point to the simplifier accepts all valid tokenized input
and produces an external tokenized output.
Inputs:
i
EStackIndex of tokenized input.
Outputs:
Pushes onto the expression stack the external tokenized form of the result
of evaluating / simplifying the input.
Assumptions:
None
Side Effects:
May expand expression stack, cause heap compression, or throw an error.
Availability:
On AMS 2.00 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: push_simplify, push_internal_simplify
Example:
void evaluate_string(unsigned char *i)
/* Given a text string, convert it to tokenized form, and then, evaluate/simplify it.
input: i – text string
output: return one result (if any) on top of expression stack
*/
{ Access_AMS_Global_Variables;
EStackIndex oldtop = top_estack;
push_parse_text (i); /* convert string to tokenized form */
i = top_estack; /* save top of tokenized form */
push_simplify_statements (i); /* evaluate/simplify */
if (top_estack != old_top) /* if eval left a result */
i = next_expression_index (top_estack); /* point below result */
delete_between (old_top, i); /* clean up all but result */
}

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