Texas Instruments TI89 Developer Guide - Page 594
push_simplify_statements, push_simplify, push_internal_simplify
![]() |
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 594 highlights
Appendix A: System Routines - Expression Evaluation / 552 Algebraic Simplification 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 */ } TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001
![](/manual_guide/products/texas-instruments-ti89-developer-guide-95b636f/594.png)