RE: Re: How to evaulate a function and graph it
- To: mathgroup at smc.vnet.net
- Subject: [mg43268] RE: [mg43223] Re: How to evaulate a function and graph it
- From: "Hobbs, Sylvia (DPH)" <Sylvia.Hobbs at state.ma.us>
- Date: Sat, 23 Aug 2003 08:08:48 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
THANKS HUGH! -----Original Message----- From: Hugh Walker [mailto:hwalker at gvtc.com] To: mathgroup at smc.vnet.net Subject: [mg43268] [mg43223] Re: How to evaulate a function and graph it On Tuesday, August 19, 2003, at 06:53 AM, Rebeca Choy wrote: > Hi everyone, > > How can I evaluate a function of 2 variables, say: > > f(x,y) = x^4 + 3 x^2 + 5 y^2 + x + y > > in an interval of [-3.0,4.0] and[-3.0,4.3] for x and y? > > I need all the points between these two ranges to plot it. To plot: f[x_,y_]:= x^4 + 3 x^2 + 5 y^2 + x + y Plot3D[f[x,y], {x,-3,5},{y,-3,5}] To obtain values on a mesh of points: Table[f[x,y], [{x,-3,5},{y,-3,5}] ========== Hugh Walker Gnarly Oaks