Appendix A: System Routines — Expression Evaluation /
Algebraic Simplification
541
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
NG_execute
Declaration:
void
NG_execute
(HANDLE
hExpr
, BOOL
bApprox
)
Category(ies):
Expression Evaluation / Algebraic Simplification
Description:
Executes one or more expressions or statements.
Inputs:
hExpr
— HANDLE of memory containing expression(s) or
statement(s) to execute.
bApprox
— NG_APPROXIMATE approximates the result.
NG_DONT_APPROXIMATE uses the current mode setting.
Outputs:
Depending upon the input, may push evaluation result on estack in external
tokenized form. The evaluation of an algebraic expression or a function
leaves a result on the estack. The execution of commands or programs
does not leave a result on the estack.
Assumptions:
None
Side Effects:
Clears error context, resets control flags, may cause estack expansion,
heap compression, or throw errors.
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
None
Example:
If h is the HANDLE of memory containing a tokenized form of the statement
Define f(x) = sin(x)
then
NG_execute (h, NG_DONT_APPROXIMATE);
would define the function f in the current symbol table and would not leave any result on the
estack.