MathGroup Archive 2006

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

Search the Archive

RE: Simple Plot3D/Function Syntax issue

I'm not sure why you're assigning an equation to f, but it probably
doesn't matter too much.

The main issue appears that you're using the variable "e" instead of the
exponential function "E". Thus
Plot3D[E^-(x^2 + y^2) (x^2 + 2y^2), {x, -3, 3}, {y, -3, 3}]
Seems to work well.

Perhaps you wanted a function "f" in x and y, which would likely be:
f[ x_, y_] := E^-(x^2 + y^2) (x^2 + 2y^2)

Which then could be used elsewhere, like:
Plot3D[ f[ x, y ], {x, -3, 3}, {y, -3, 3}]

-----Original Message-----
From: JTolman [mailto:jtolman at] 
To: mathgroup at
Subject: [mg68598] [mg68566] Simple Plot3D/Function Syntax issue

When I enter
f = e^-(x^2 + y^2) (x^2 + 2y^2)
It gives me a syntax::noinfo error but the output looks like the correct
textbook style function.

Also, when I try to plot it
Plot3D[e^-(x^2 + y^2) (x^2 + 2y^2), {x, -3, 3}, {y, -3, 3}] It of course
gives me not machines-size real number errors, which I am assuming have
more to do with my original syntax error.  I've tried several variations
but can't figure out what needs to be corrected.

  • Prev by Date: Re: SImple Plot3D issue
  • Next by Date: Re: Simple Plot3D/Function Syntax issue
  • Previous by thread: Re: Simple Plot3D/Function Syntax issue
  • Next by thread: Re: Simple Plot3D/Function Syntax issue