I want to plot the following function in Maple 18.
p := (x, x0, w) -> exp(-(1/2)*(x-x0)^2/w^2)/sqrt(w*sqrt(pi))
and am attempting to plot it using the following command
plot(p(x, 20, 1), x = 0 .. 40) #yes I am setting x0 = 20, and w = 1.
However I get the following error when attempting to plot
Error, (in plot) incorrect first argument exp(-(1/2)*(x-20)^2)/pi^(1/4)
I have read the documentation regarding this error, but it has not helped. How would I plot my function "p"?
In Maple, Pi, the well-known constant, is spelled Pi, not pi.