cmd_drawpol Function (ROM Call 0x344)

AMS 1.01 or higher bascmd.h

void cmd_drawpol (CESI ExprList);

Executes TI-Basic 'DrawPol' command.

cmd_drawpol displays the Graph Screen and draws a polar graph, using the Greek letter "theta" as the independent variable. This function expects one of the following eight layouts on the expression stack:

END_TAG thstep thmax thmin expr
END_TAG thmax thmin expr
END_TAG thstep NOTHING_TAG thmin expr
END_TAG thstep thmax NOTHING_TAG expr
END_TAG thmin expr
END_TAG thmax NOTHING_TAG expr
END_TAG thstep NOTHING_TAG NOTHING_TAG expr
END_TAG expr

The parameter ExprList should point to the tag of the last item. expr is the expression which defines the polar graph. thmin, thmax and thstep are floating point items which determine the starting value, the ending value, and the increment of the independent variable "theta" which will be used for drawing.

If the current graphing mode is not polar, only the first layout is valid. Otherwise, the omitted expressions will be picked from the current settings of the "thetamin", "thetamax" and "thetastep" system variables in the "Window Editor" application (note that "theta" means a Greek letter theta, not an actual string "theta").


Uses: ER_catch, ER_success, ER_throwVar, next_expression_index, push_expression, push_Float, push_quantum, top_estack, gr_active, StepCk, OSCheckBreak, is_transfinite, round14, sincos, CptIndep, ForceFloat, GraphActivate, GrLineFlt, QSkipGraphErr, _bcd_math


See also: cmd_drawparm, cmd_drawfunc