|
From: Jefferson S. E. P. <st...@gm...> - 2012-12-26 11:42:15
|
The important point seems to be making sure a floating point operation is performed: gnuplot> print 3/2 1 gnuplot> print 3./2 1.5 So I think f(x) should be defined as: f(x)=3*x**2/((1.5-x)**2*(x+3))*exp(-(1./(1-2./3*x)+4./3*log(x+3)+5./3*log(abs(3./2-x))-3*log(3)-1+5./3*log(2))/6) Cheers, Stafusa On Wed, Dec 26, 2012 at 4:37 AM, t t <la...@ma...> wrote: > Dear gnuplot users, > I want to plot one function > set terminal postscript eps enhanced > set output "distr.eps" > set xrange [0:1] > set key above > f(x)=3*x**2/((1.5-x)**2*(x+3))*exp(-(1/(1-2/3*x)+4/3*log(x+3)+5/3*log(abs(3/2-x))-3*log(3)-1+5/3*log(2))/6) > plot f(1)*x > > > and it says: > all points y value undefined! > What's wrong with my function? > f(1) is a real number about 2.7 > Thank you for your attention > gnuplot 4.6 patchlevel 1 > -- > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |