cmd_drawfunc Function (ROM Call 0x341)

AMS 1.01 or higher bascmd.h

void cmd_drawfunc (CESI expr);

Executes TI-Basic 'DrawFunc' command.

cmd_drawfunc displays the Graph Screen and draws the expression pointed to by expr on the screen as a function, using "x" as the independent variable. For example, to draw the graph of the sine function, you can do:

push_parse_text ("sin(x)");
cmd_drawfunc (top_estack);
Note that the drawn graph is not part of the smart graph feature (see the TI-Basic manual for more info), and that regraphing will erase all drawn items.


Uses: ER_catch, ER_success, ER_throwVar, push_expression, push_Float, push_quantum, top_estack, gr_active, OSCheckBreak, is_transfinite, ForceFloat, GraphActivate, GrLineFlt, QSkipGraphErr, XCvtPtoF, YCvtPtoF


See also: cmd_graph, cmd_drawinv, cmd_drawparm, cmd_drawpol