Plotter improvements
This commit is contained in:
parent
600b454eef
commit
ae6bb0a383
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user