Plotter improvements
This commit is contained in:
parent
600b454eef
commit
ae6bb0a383
@ -65,7 +65,7 @@ public final class PlotUtils {
|
|||||||
|
|
||||||
while (x <= max) {
|
while (x <= max) {
|
||||||
|
|
||||||
boolean needToCalculateRealY = realSeries.needToAdd(eps, x);
|
boolean needToCalculateRealY = realSeries.needToAdd(defaultStep, x);
|
||||||
|
|
||||||
if (needToCalculateRealY) {
|
if (needToCalculateRealY) {
|
||||||
final Complex c = calculatorExpression(expression, variable, x);
|
final Complex c = calculatorExpression(expression, variable, x);
|
||||||
@ -77,7 +77,7 @@ public final class PlotUtils {
|
|||||||
realSeries.add(x, y);
|
realSeries.add(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(eps, x);
|
boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(defaultStep, x);
|
||||||
if (needToCalculateImagY) {
|
if (needToCalculateImagY) {
|
||||||
y = prepareY(c.imaginaryPart());
|
y = prepareY(c.imaginaryPart());
|
||||||
if (y != null) {
|
if (y != null) {
|
||||||
@ -90,7 +90,7 @@ public final class PlotUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(eps, x);
|
boolean needToCalculateImagY = imagSeries != null && imagSeries.needToAdd(defaultStep, x);
|
||||||
if (needToCalculateImagY) {
|
if (needToCalculateImagY) {
|
||||||
final Complex c = calculatorExpression(expression, variable, x);
|
final Complex c = calculatorExpression(expression, variable, x);
|
||||||
Double y = prepareY(c.imaginaryPart());
|
Double y = prepareY(c.imaginaryPart());
|
||||||
|
Loading…
Reference in New Issue
Block a user