|
From: Pentek I. G. <pen...@in...> - 2005-09-23 11:18:37
|
On Fri, 23 Sep 2005 11:53:24 +0200, Hans-Bernhard Broeker wrote > Péntek Imre wrote: > > Hello, > > > > I use gnuplot compiled by me from cvs source, I found this bug: > > Terminal type set to 'x11' > > gnuplot> plot exp(2/3*x); > > Warning: empty y range [1:1], adjusting to [0.99:1.01] > > That's not a bug. That's just integer arithmetic. Try the > following two commands in a gnuplot prompt, and you'll see it: > > print 2/3 > print 2.0/3 > > And before you ask: yes, this documented behaviour. See "help expressions". this is not a feature, its a very annoying malfunction. when I write 2/3 I'm not thinking about computer-executed mathematical computations, but thinking about mathematical operation. the two of the above ones should be equivalent. -- Üdvözlettel: Ifj. Péntek Imre E-Mail: pen...@in... |