Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f1(x) = a1*x**b1+c1*x
- f2(x) = log(a2*exp(x)**b2 + c2*exp(x))
- a1 = b1 = c1 = a2 = b2 = c2 = 2
- fit f1(x) "inversion_sort.txt" using 1:2 via a1,b1,c1
- fit f2(x) "inversion_sort.txt" using 3:4 via a2,b2,c2
- print b1
- print b2
- set terminal png size 400,300 enhanced font "Cambria Math,10"
- set output "inversion_sort_normal.png"
- plot f1(x) title "fit" lt rgb "green", "inversion_sort.txt" using 1:2 with dots title "data" lt rgb "red"
- set output "inversion_sort_loglog.png"
- plot f2(x) title "fit" lt rgb "green", "inversion_sort.txt" using 3:4 with dots title "data" lt rgb "red"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement