# Andrew J. Pounds, Ph.D # Department of Computer Science # Mercer University # Spring 2005 # #Plot Data File set title "Parallel Speedup Curve\nFit To Amdahl's Law" plot [0:35] [0:35] "data.dat" with points #Plot Perfect Speedup Line Linear(x) = x replot Linear(x) #Fit to Amdahl's Law Amdahl(x) = x/(1+(x-1)*f) FIT_LIMIT = 1e-12 fit Amdahl(x) "data.dat" using 1:2 via f #Plot Fit to Amdahl's Law replot Amdahl(x)