RE: Simple Plot3D/Function Syntax issue
- To: mathgroup at smc.vnet.net
- Subject: [mg68598] RE: [mg68566] Simple Plot3D/Function Syntax issue
- From: "Erickson Paul-CPTP18" <Paul.Erickson at Motorola.com>
- Date: Fri, 11 Aug 2006 04:40:12 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
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 gmail.com]
To: mathgroup at smc.vnet.net
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.