MathGroup Archive 2003

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

Search the Archive

Re: How to evaulate a function and graph it

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43223] Re: How to evaulate a function and graph it
  • From: Hugh Walker <hwalker at gvtc.com>
  • Date: Wed, 20 Aug 2003 22:25:18 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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


  • Prev by Date: Re: Justification of graphics in cells
  • Next by Date: Re: How to evaulate a function and graph it
  • Previous by thread: Re: How to evaulate a function and graph it
  • Next by thread: Re: How to evaulate a function and graph it