Re: newbie question
- To: mathgroup at smc.vnet.net
- Subject: [mg45049] Re: newbie question
- From: Harold <hskolnic at ix.netcom.com>
- Date: Sun, 14 Dec 2003 06:22:49 -0500 (EST)
- References: <brfual$fbs$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
ak wrote:
> I'm new to the software, and am having trouble with a simple command:
>
> Plot3D[Sin[xy], {x, 0, 3}, {y, 0, 3}];
>
> This is giving me: Plot3D::plnc: Sin[xy] is neither a machine-size
> real number at {x, y}={0., \
> 0.} nor a list of a real number and a valid color directive
>
> I must be missing something obvious, what could I be doing wrong here?
> I don't think you need to load any packages to do this, do you?
>
Put a space between x and y in Sin[x y] so it will be interpreted as
multiplication. Otherwise xy is a new variable, not a product of x and y.
Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}];