5
$\begingroup$

Having seen the following plot on a page, I am trying to recreate it with Mathematica. enter image description here

I have defined the function and used Plot3D to create the plot as the following commands shows.

z = Exp[-r^2]*(Sin[6 Pi r] - r Cos[3 θ])
Plot3D[z, {r, -8, 8}, {θ, -8, 8}]

The result is as follows:

enter image description here

Why do I have two different plots?

$\endgroup$

1 Answer 1

7
$\begingroup$
RevolutionPlot3D[
 E^-r^2 (Sin[6 \[Pi] r] - r Cos[3 \[Theta]]),
     {r, 0, 1}, 
     {\[Theta], 0, 2 \[Pi]}]

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.