|
From: Ethan A M. <sf...@us...> - 2014-04-17 19:14:37
|
On Thursday, 17 April, 2014 20:18:44 pl...@pi... wrote: > On 04/17/14 19:40, Ethan A Merritt wrote: > > > > On Thursday, 17 April, 2014 18:39:50 pl...@pi... wrote: > >> On 04/17/14 17:48, Philipp K. Janert wrote: > >>> Fair enough. > >>> > >>> And I will admit that the 1/2==0 problem bites > >>> me as well, occasionally.;-) > >>> > >> > >> I too find this a pain. Sometimes I forget , especially when it is a > >> variable that later is in denominator, since it's not immediately obvious. > >> > >> df=30 > >> .... > >> > >> fit f(x) datafile using 1:($2/df) via m,c > > > > Huh? > > > > $2 is always a float, so $2/df is also always a float. > > > > Ethan > > > > > > > > OK , so now I'm putting dots where I don't need to in order to try to > avoid writing integer divisions when I don't intend. > > Underlines that this is confusing and a PITA. [shrug] Most of gnuplot's math syntax follows C, and the distinction between (int) and (float) also follows C. I don't think that pulling in examples from python is relevant; languages all have their quirks and even a kitchen-sink tool like perl cannot simultaneous mimic all of them. Ethan |