cat measure dat gnuplot gnuplot gnuplot fit measure dat via Final set

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
$ cat measure.dat
0 0
1 2
2 4
3 6
$ gnuplot
gnuplot> f(x) = a*x + b
gnuplot> fit f(x) 'measure.dat' via a, b
...
Final set of parameters
=======================
a = 2
b = 2.60475e-35