Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Help plotting P(x,y,z) = Aexp[r^2]

  • To: mathgroup at
  • Subject: [mg97828] Re: [mg97816] Help plotting P(x,y,z) = Aexp[r^2]
  • From: "David Park" <djmpark at>
  • Date: Mon, 23 Mar 2009 04:02:20 -0500 (EST)
  • References: <6012914.1237719360356.JavaMail.root@m02>

And what do you mean when you say you want to 'plot' the function? What
would be the message of the plot?

For this function one might actually have at least two plots. One plot might
show a level surface of the function. A second plot might show how the value
of the function varied along the x-axis (actually how it varied with r.)

First, define the function.

p[a_][x_, y_, z_] := a Exp[x^2 + y^2 + z^2]

Now we could show a particular level surface, 3 say, with a = 1.

ContourPlot3D[p[1][x, y, z] == 3, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}] 

And we could show how the value of the function varied along the x axis.

Plot[p[1][x, 0, 0], {x, 0, 2}]

Or perhaps with a Log plot.

LogPlot[p[1][x, 0, 0], {x, 0, 20}]

David Park
djmpark at  

From: dylankrishnan at [mailto:dylankrishnan at] 

where r^2 = x^2 + y^2 + z^2 and A is a constant.

I thought this would be simple until I realized mathematica doesnt
like three inputs ( to my  knowledge)

I've been trying to plot this for the last few days, but have had no
luck getting it to work using version 7.

Any help getting started would be greatly appreciated!

  • Prev by Date: Recursive algorithm
  • Next by Date: Re: DirectSum (feature request)
  • Previous by thread: Re: Help plotting P(x,y,z) = Aexp[r^2]
  • Next by thread: Problem using a dialog and dynamic