 |
NG_approxESI |
Function (ROM Call 0x25C) |
Evaluates an expression in "APPROX" mode.
NG_approxESI executes the entry on the expression stack pointed to by ptr
(it needs to point to the entry tag) in "APPROX" mode, then pushes the result (i.e. a new
expression) on the top of the expression stack. The pushed result is NOT in
internal canonic form
(if necessary, do push_internal_simplify to force conversion
to the internal canonic form). The following example illustrates this very powerful command:
push_parse_text ("sin(1.3)+log(2)/7");
NG_approxESI (top_estack);
printf_xy (0, 50, "%f", estack_number_to_Float (top_estack));
See push_parse_text and estack_number_to_Float
to understand how this example works.
Note: The expression must not contain TI-Basic statements.
For executing TI-Basic statements, use NG_execute. Also, this
command may cause expansion of the expression stack or heap compression, and may throw
various errors is something is wrong.
Uses: ER_catch, ER_success, ER_throwVar, NG_control, push_simplify, ROM Call 0x5C7
Used by: cmd_linetan, cmd_randseed, cmd_sinreg, push_randnorm, push_round, de_initRes, dv_create_graph_titles, ForceFloat, GetStatValue, GM_Derivative, GM_DistArc, GM_Inflection, GM_Integrate, GM_Intersect, GM_Math1, GM_TanLine, gr_execute_de, gr_execute_seq, InitTimeSeq, push_format, seqWebInit, ROM Call 0x46F