Re: Simple Plot3D/Function Syntax issue
- To: mathgroup at smc.vnet.net
- Subject: [mg68602] Re: Simple Plot3D/Function Syntax issue
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Fri, 11 Aug 2006 04:40:28 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 8/9/06 at 11:57 PM, jtolman at gmail.com (JTolman) wrote:
>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.
Hmm... When I simply copy, paste then execute the line above in Mathematica 5.2 in a fresh session I don't get an error. Nor would I expect to get an error since the assignment to f is valid Mathematica code.
>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.
In short, e is not E. Plot3D will continue to give the error until you define the variable e to have a numerical value. I assume you meant to plot Exp[-(x^2 + y^2) (x^2 + 2y^2)]. If so,
Plot3D[E^-(x^2 + y^2) (x^2 + 2y^2), {x, -3, 3}, {y, -3, 3}];
will give you the desired result
--
To reply via email subtract one hundred and four