Re: Simple Plot3D/Function Syntax issue
- To: mathgroup at smc.vnet.net
- Subject: [mg68597] Re: Simple Plot3D/Function Syntax issue
- From: dimmechan at yahoo.com
- Date: Fri, 11 Aug 2006 04:40:10 -0400 (EDT)
- References: <ebeb66$ldv$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
You must type E instead of e.
In[1]:=N[e]
Out[1]=e
In[2]:=N[E]
Out[2]=2.71828
ln[3]:=?E
Out[3]:=E is the exponential constant e (base of natural logarithms),
with numerical \
value approximately equal to 2.71828. More...
You could also type \[ExponentialE] or press Esq, then type ee and
again press Esc to take the traditional form of E.
(See Section 3.10.2 in the Mathematica Book).
Everything works fine now.
BTW you must write Pi for the constant pi and I for the imaginary unit
Sqrt[-1] (and not p and i for example). These are some common mistakes
for beginers. However you are able to put them in taditional form to
your input expressions (see previous reference).
You should take the Tour of Mathematica in the Help Browser before
proceeding.
Cheers
Jim
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.
>
> 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.