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: [mg43220] Re: How to evaulate a function and graph it
  • From: Julian Einwag <julian at brightstar.swin.de>
  • Date: Wed, 20 Aug 2003 22:25:13 -0400 (EDT)
  • References: <bht3hi$n22$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Rebeca Choy <rchoy at ula.ve> writes:

> 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

You could use Plot3D:
Plot3D[f[x,y], {x, -3, 4}, {y, -3, 4.3}]
If you really need the numerical values, I think Table is what you're
looking for:
Table[{x,y,f[x]},{x,- 3, 4,<step>}, {y, -3, 4.3, <step>}]


  • Prev by Date: Re: How to evaulate a function and graph it
  • Next by Date: Triangle Plots
  • Previous by thread: Re: How to evaulate a function and graph it
  • Next by thread: Re: How to evaulate a function and graph it