Laguerre solver used an obsolete nomenclature for a method in ComplexUtils, so the method call was patched to the new ComplexUtils name
Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/4f271dda Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/4f271dda Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/4f271dda Branch: refs/heads/feature-MATH-1290 Commit: 4f271dda156bea06cd9c4b9037bd9bcd740ecbc6 Parents: b58a272 Author: Eric Barnhill <[email protected]> Authored: Tue Apr 19 21:38:18 2016 +0200 Committer: Eric Barnhill <[email protected]> Committed: Tue Apr 19 21:38:18 2016 +0200 ---------------------------------------------------------------------- .../apache/commons/math4/analysis/solvers/LaguerreSolver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/4f271dda/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java b/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java index b038abb..ab01885 100644 --- a/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java +++ b/src/main/java/org/apache/commons/math4/analysis/solvers/LaguerreSolver.java @@ -147,7 +147,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver { * @return the point at which the function value is zero. */ private double laguerre(double lo, double hi) { - final Complex c[] = ComplexUtils.convertToComplex(getCoefficients()); + final Complex c[] = ComplexUtils.real2Complex(getCoefficients()); final Complex initial = new Complex(0.5 * (lo + hi), 0); final Complex z = complexSolver.solve(c, initial); @@ -193,7 +193,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver { Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, initial); - return complexSolver.solveAll(ComplexUtils.convertToComplex(coefficients), + return complexSolver.solveAll(ComplexUtils.real2Complex(coefficients), new Complex(initial, 0d)); } @@ -223,7 +223,7 @@ public class LaguerreSolver extends AbstractPolynomialSolver { Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, initial); - return complexSolver.solve(ComplexUtils.convertToComplex(coefficients), + return complexSolver.solve(ComplexUtils.real2Complex(coefficients), new Complex(initial, 0d)); }
