RE: How to evaulate a function and graph it
- To: mathgroup at smc.vnet.net
- Subject: [mg43218] RE: How to evaulate a function and graph it
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 20 Aug 2003 22:25:08 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Rebeca, f[x_, y_] := x^4 + 3 x^2 + 5 y^2 + x + y Plot3D[f[x, y], {x, -3, 4}, {y, -3, 4.3}]; You can obtain more control over the plot by using the various Plot Options. As an example... Needs["Graphics`Colors`"] Plot3D[f[x, y], {x, -3, 4}, {y, -3, 4.3}, AxesLabel -> {x, y, f}, PlotLabel -> f[x, y], Background -> Linen, ImageSize -> 450]; David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Rebeca Choy [mailto:rchoy at ula.ve] To: mathgroup at smc.vnet.net 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 Thanks Rebeca