Previous Up Next

19.2.1  2D graph

The plotfunc or funcplot command draws the graph of a function.

plotfunc can draw the graph of a one-variable function or a two-variable function; this section will discuss one-variable functions and the next section will discuss two-variable functions.

Examples

plotfunc(x^2-2)
plotfunc(a^2-2,a=-1..2)
plotfunc(x^2-2,x,xstep=5)
plotfunc(x^2-2,x=-2..3,nstep=30)

Previous Up Next