When I tried to fit some date for f(x)=a*(1-2*exp(-b*x)) gnuplot gave me the error gnuplot> fit f(x) "foo" using 1:3 via a, b Undefined value during function evaluation The reason could be found easily: gnuplot> print a 0.312581387868822 gnuplot> print b -1.44080853023923 As the valid range for x covers [1:500], […]