Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Newbie Question -- Plot3d::plnc

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52719] Re: [mg52698] Newbie Question -- Plot3d::plnc
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 11 Dec 2004 05:21:11 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

You forgot the comma used to separate the arguments in the call to xtimesy

xtimesy[x_,y_]:=x*y;
Plot3D[xtimesy[x,y],{x,-5,5},{y,-5,5}];


Bob Hanlon

> 
> From: jujubaby at gmail.com
To: mathgroup at smc.vnet.net
> Date: 2004/12/09 Thu PM 08:23:12 EST
> To: mathgroup at smc.vnet.net
> Subject: [mg52719] [mg52698] Newbie Question -- Plot3d::plnc
> 
> 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
> 
> 


  • Prev by Date: Re: Successive words in different colors?
  • Next by Date: Q:Changing Mathematica default terms arrangement
  • Previous by thread: Re: Newbie Question -- Plot3d::plnc
  • Next by thread: Re: Newbie Question -- Plot3d::plnc