Re: Newbie Question -- Plot3d::plnc
- To: mathgroup at smc.vnet.net
- Subject: [mg52722] Re: Newbie Question -- Plot3d::plnc
- From: juejung <juejung at indiana.edu>
- Date: Sat, 11 Dec 2004 05:21:15 -0500 (EST)
- References: <cpav9n$isv$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
you forgot the comma between x and y in your xtimes function. try Plot3D[xtimesy[x,y],{x,-5,5},{y,-5,5}] best juergen On Fri, 10 Dec 2004 01:48:39 +0000 (UTC), <jujubaby at gmail.com> wrote: > X-No-Archive: Yes > > When I enter the following two statements into Mathematica 5: > > xtimesy[x_, y_] := x*y; > Plot3D[xtimesy[x y], {x, -5, 5}, {y, -5, 5}] > > I receive a huge cascade of errors, all of this form: > > Plot3D::plnc: xtimesy[x\y] is neither a machine-size real number at \ > {x,y}={-5.,-5.} nor a list of a real number and a valid color > directive. > > What am I doing wrong? > > Thanks! > > -Jake > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/