# # plot results for estimating pi using a Monte Carlo approach, # using three different methods for generating random numbers. # # to run in batch: # gnuplot lines.plotin # to use interactively: # omit or comment out the following two lines, then from gnuplot: # load "lines.plotin" set terminal png set output "lines.png" set style data linespoints set logscale x set xlabel "Number of samples" set ylabel "Error in computation" plot \ "c-library.dat" title "with C library function (seed 29)", \ "java-library.dat" title "with Java library class (seed 31)", \ "lcg.dat" title "with custom LCG function (seed 4321)"