## gnuplot-info

 [Gnuplot-info] plotting a not so easy function... From: Hugo Gagnon - 2009-11-22 05:33:06 ```Hello, I am relatively new to gnuplot and I would like your opinion on how to plot f(x1,x2) as follows: b = -abs(0.8*x1 - .4) if (x2 < b) then f = 100*(x2 - x1^2)^2 + (1 - x1)^2 - 200 else f = 400*(x1^2 - x1*x2 + .2*x2^4) - 1000*sin(x2^2 - x1^3) endif Thank you, -- Hugo Gagnon ```
 Re: [Gnuplot-info] plotting a not so easy function... From: Thomas Sefzick - 2009-11-22 12:54:04 ```f(x,y)=y<-abs(0.8*x-0.4)?100.*(y-x**2)**2+(1.-x)**2-200.:400.*(x**2-x*y+0.2*y**4)-1000.*sin(y**2-x**3) splot f(x,y) see: http://www.gnuplot.info/docs/node58.html Hugo Gagnon-4 wrote: > > Hello, > I am relatively new to gnuplot and I would like your opinion on how to > plot f(x1,x2) as follows: > > b = -abs(0.8*x1 - .4) > if (x2 < b) then > f = 100*(x2 - x1^2)^2 + (1 - x1)^2 - 200 > else > f = 400*(x1^2 - x1*x2 + .2*x2^4) - 1000*sin(x2^2 - x1^3) > endif > > Thank you, > -- > Hugo Gagnon > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Gnuplot-info mailing list > Gnuplot-info@... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/plotting-a-not-so-easy-function...-tp26462957p26464170.html Sent from the Gnuplot - User mailing list archive at Nabble.com. ```