From ae6bb0a383596a4866b68d7b04c609d90dbc481a Mon Sep 17 00:00:00 2001 From: serso Date: Thu, 4 Oct 2012 18:08:53 +0400 Subject: [PATCH] Plotter improvements --- .../org/solovyev/android/calculator/plot/PlotUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/calculatorpp/src/main/java/org/solovyev/android/calculator/plot/PlotUtils.java b/calculatorpp/src/main/java/org/solovyev/android/calculator/plot/PlotUtils.java index 1853b891..821a20a4 100644 --- a/calculatorpp/src/main/java/org/solovyev/android/calculator/plot/PlotUtils.java +++ b/calculatorpp/src/main/java/org/solovyev/android/calculator/plot/PlotUtils.java @@ -65,7 +65,7 @@ public final class PlotUtils { while (x <= max) { - boolean needToCalculateRealY = realSeries.needToAdd(eps, x); + boolean needToCalculateRealY = realSeries.needToAdd(defaultStep, x); if (needToCalculateRealY) { final Complex c = calculatorExpression(expression, variable, x); @@ -77,7 +77,7 @@ public final class PlotUtils { realSeries.add(x, y); } - boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(eps, x); + boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(defaultStep, x); if (needToCalculateImagY) { y = prepareY(c.imaginaryPart()); if (y != null) { @@ -90,7 +90,7 @@ public final class PlotUtils { } } } else { - boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(eps, x); + boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(defaultStep, x); if (needToCalculateImagY) { final Complex c = calculatorExpression(expression, variable, x); Double y = prepareY(c.imaginaryPart());