Re: Plot3D confusion
- To: mathgroup at smc.vnet.net
- Subject: [mg38623] Re: Plot3D confusion
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Wed, 1 Jan 2003 03:39:55 -0500 (EST)
- References: <aur8o5$8ft$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Warren,
You need a space between the I and the y:
f[x_,y_]:=Abs[1+(x+I y)^3]
Plot3D[f[x,y],{x,-1.25,1.25},{y,-1.25,1.25},PlotPoints->40,Mesh->False,FaceG
rids->All]
--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565
"Warren Rogers" <wrx at cruzio.com> wrote in message
news:aur8o5$8ft$1 at smc.vnet.net...
> I'm confused here. If I try the following command
>
>
Plot3D[Abs[1+(x+Iy)^3],{x,-1.25,1.25},{y,-1.25,1.25},PlotPoints->40,Mesh->Fa
lse,FaceGrids->All]
>
> I get a nice 3D plot of a surface that has dimples where the complex zeros
are.
>
> BUT
>
> If I try the following:
>
> f[x_,y_]:=Abs[1+(x+Iy)^3]
>
>
Plot3D[f[x,y],{x,-1.25,1.25},{y,-1.25,1.25},PlotPoints->40,Mesh->False,FaceG
rids->All]
>
> Mathematica refuses to plot it at all giving me at least half a dozed
> incomprehensible error messages. I imagine I'm using some sort of
> wrong convention but damned if I can figure it out.
>
> I'm using Mathematica 3.0 on a Mac clone (PowerTower Pro with G3
> accelerator) running OS 8.6.
>
> I'd be most grateful for any help.
>
> thanks,
>
> Warrne Rogers
>