|
From: Daniel <boy...@gm...> - 2010-02-09 12:51:23
|
Hi folks, I just tried plotting this equation, T0 = 300 T1 = 6000 set xrange [T0:T1] f(x) = (1 - x**4/T1**4) * (1 - T0/x) Which should have two zeros at (x=300 and x=6000). It seems that because the numbers have been defined as integers it give the wrong result. Redefining, T0 = 300. T1 = 6000. plots the correct function. Is there a case for converting ints to floats as standard in the gnuplot interpreter? When using gnuplot as a user, I would expect the maths to just work without having to think about programming details like ints of floats. In a programming environment of course this is what I would expected. Cheers, Dan |