author | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-09-07 01:48:38 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2010-09-07 02:18:35 UTC |
parent | 7907c8ffeaa115b6f2cc83c0bc074f11644ff1f6 |
err.py | +2 | -3 |
plot.gpi | +1 | -1 |
diff --git a/err.py b/err.py index e80ae18..370fce0 100755 --- a/err.py +++ b/err.py @@ -20,10 +20,9 @@ P = Decimal('1.41421356237309504880168872420969807856967187537694807317667973799 for l in sys.stdin.readlines(): niters, prec, resultado, res_hex = l.split() - # Calculamos el error, escalado en 100 millones para graficarlo mejor - # ya que gnuplot usa doubles + # Calculamos el error r = Decimal(resultado) - error = abs(P - r) * 100 * 1000000 + error = abs(P - r) print l.strip(), error diff --git a/plot.gpi b/plot.gpi index 1f2e43e..7549983 100644 --- a/plot.gpi +++ b/plot.gpi @@ -7,7 +7,7 @@ set style data linespoints # Error con precision fija e iteraciĆ³n variable # -set ylabel "Error * 100 millones" +set ylabel "Error" set xlabel "IteraciĆ³n"