Ask Your Question

Revision history [back]

Here, you want this instead:

myplot = lambda r: plot(x^r, (x, -1, 1))

Then you can do:

myplot(3)

to get the plot of $x \mapsto x^3$.