### 19.2.3 2D graph for Maple compatibility

The plot command is a Maple-compatible way to draw the graph of a univariate function.

- plot takes one mandatory argument and two optional arguments:
  - func, a function or an expression involving one variable.
  - Optionally, var the name of the variable in the expression (if func is an expression), which can also specify a range of values var=a..b (by default it is x). If func is a function, the optional second argument can simply be a range a..b for the variable.
  - Optionally, opt, which can be xstep=n to specify the discretization step or nstep=n to specify the number of points used to graph.
- plot(expr⟨,var,opt⟩) draws the graph.

#### Example

plot(x^2-2,x)