You are on page 1of 3

>

>
>
>
>
>
>

a=8.01786e-7
x = seq(-10,10,length=50)
y=x
f = function(x,y) { (a/pi)*exp(-a*(x^2 + y^2)) }
z = outer(x,y,f)
persp(x,y,z)
persp(x,y,z,theta=30,phi=30)

You might also like