First time here? Check out the FAQ!
answered 2022-06-22 12:19:40 +0100
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$.