f(x)=a*sin(6.28/P*x+b)+c a=1 P=800 b=0 # FIXED c=0 # FIXED fit f(x) '7cm.txt' u 1:2:3 via a,P plot '7cm.txt' u 1:2, f(x) print P_err print a_err