Use complex multiply by scalar

This commit is contained in:
aherbert 2022-07-15 17:17:40 +01:00
parent f54b4c7c9f
commit 64e2818924
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver {
dv = pv.add(z.multiply(dv));
pv = coefficients[j].add(z.multiply(pv));
}
d2v = d2v.multiply(Complex.ofCartesian(2.0, 0.0));
d2v = d2v.multiply(2);
// Check for convergence.
final double tolerance = JdkMath.max(relativeAccuracy * z.abs(),