Re: About 3Dplot....
- To: mathgroup@smc.vnet.net
- Subject: [mg11543] Re: About 3Dplot....
- From: Allan Hayes <hay@haystack.demon.co.uk>
- Date: Sat, 14 Mar 1998 13:55:58 -0500
- References: <6e8379$nb8@smc.vnet.net>
smk94 wrote: > > I have a certain function with two ind. variables ( f(x,y) ) and I want > a plot of it. > The problem is that the form of the function varies according to the > values of > the ind. variables. > This is easily determined, if we have a function like : f(x) ,using the > command which. The same command can be used for functions containing > more than one ind. variable? > If not, how can I state this function in Mathematica , in order to have > a plot of it or > to find substationary points (local minimum) I'm working on problems of > nonconvex optimazation. > > Thank you > ..a student from Greece. Which works in general, for example: f[x_,y_]:= Which[ x<y, x-y, x<y+2,x+y, True, x y ] -- Allan Hayes Training and Consulting Leicester, UK hay@haystack.demon.co.uk http://www.haystack.demon.co.uk voice: +44 (0)116 271 4198 fax: +44 (0)116 271 8642