Re: Question about Plotting with boundary constriants

*To*: mathgroup at smc.vnet.net*Subject*: [mg58232] Re: [mg58225] Question about Plotting with boundary constriants*From*: Bob Hanlon <hanlonr at cox.net>*Date*: Fri, 24 Jun 2005 02:49:51 -0400 (EDT)*Reply-to*: hanlonr at cox.net*Sender*: owner-wri-mathgroup at wolfram.com

Needs["Graphics`"]; f[x_,y_] := Sin[3x+2y]; DisplayTogetherArray[ {{InequalityPlot[{0<=x<=1,0<=y<=1-x}, {x, -0.25, 1.25}, {y, -0.25, 1.25}, PlotRange->{{-0.25,1.25}, {-0.25,1.25}}, Frame->True,Axes->False], Plot3D[f[x,y], {x,-0.25,1.25},{y,-0.25,1.25}]}, {Plot3D[f[x,y]*Boole[0<=x<=1&&0<=y<=1-x], {x,-0.25,1.25}, {y,-0.25,1.25}]}}, ImageSize->432]; Bob Hanlon > > From: HUAFANG CUI <huafangc at seas.upenn.edu> To: mathgroup at smc.vnet.net > Date: 2005/06/23 Thu AM 05:34:09 EDT > Subject: [mg58232] [mg58225] Question about Plotting with boundary constriants > > Hi, > > I have a question about plotting a 3d graph with some boundary constraints. > > for example, > > feasible area of function f(x, y) is 0 <= x <= 1 and 0 <= y <= 1-x. > > Thanks alot. > > HC > >