author | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-09-07 02:38:01 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-09-07 02:38:01 UTC |
parent | ea2d16ccd44dcdc9873ec3dfd665fa67659ddf5d |
Makefile | +3 | -2 |
plot.gpi | +15 | -3 |
diff --git a/Makefile b/Makefile index eafd74f..2f8ef48 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ CXXFLAGS += -Wall -std=c++98 -pedantic -Wno-long-long OBJS = aritmetica.o util.o default: calc babilonio binomial fcont fcont_int binomial_inc binomial_dec + all: default calc: $(OBJS) calc.o @@ -38,9 +39,9 @@ clean: rm -f binomial_inc binomial_inc.o rm -f binomial_dec binomial_dec.o -plot_data: out/plot_data +plot_data: all out/plot_data -out/plot_data: all +out/plot_data: mkdir -p out ./gen_plot_data.sh touch out/plot_data diff --git a/plot.gpi b/plot.gpi index 7549983..02114b7 100644 --- a/plot.gpi +++ b/plot.gpi @@ -7,19 +7,24 @@ set style data linespoints # Error con precision fija e iteración variable # -set ylabel "Error" - set xlabel "Iteración" +set logscale y +set ylabel "Error (escala logarítmica)" +#unset logscale y +#set ylabel "Error" + # Babilonio set output "plot/babilonio-err-p:51.png" set title "Babilonio con precisión 51 - Error" plot \ 'out/OUT-babilonio-prec:51-err' using 1:5 title "Babilonio" +set logscale y +set ylabel "Error (logarítmica)" set output "plot/babilonio-err-p:51-detalle.png" set title "Babilonio con precisión 51 - Error - Detalle" -plot [2:10] \ +plot [:7] \ 'out/OUT-babilonio-prec:51-err' using 1:5 title "Babilonio" # Binomial @@ -83,6 +88,13 @@ plot \ 'out/OUT-binomial_inc-iter:100-err' using 2:5 title "Binomial inc", \ 'out/OUT-binomial_dec-iter:100-err' using 2:5 title "Binomial dec" +set output "plot/binomial-err-i:100-detalle.png" +set title "Binomial en iteración 100 - Error - Detalle" +plot [15.8:23.5] \ + 'out/OUT-binomial-iter:100-err' using 2:5 title "Binomial", \ + 'out/OUT-binomial_inc-iter:100-err' using 2:5 title "Binomial inc", \ + 'out/OUT-binomial_dec-iter:100-err' using 2:5 title "Binomial dec" + # Fracciones continuas set output "plot/fcont-err-i:10.png" set title "Fracciones continuas en iteración 10 - Error"