Skip to content

Commit 71f935c

Browse files
committed
WIP #914 - use iteration limit for LaguerreSolver
See: - Hipparchus-Math/hipparchus#311
1 parent 1d6df19 commit 71f935c

File tree

1 file changed

+3
-2
lines changed
  • symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin

1 file changed

+3
-2
lines changed

symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin/RootsFunctions.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1025,9 +1025,10 @@ private static org.hipparchus.complex.Complex[] allComplexRootsLaguerre(
10251025
LaguerreSolver solver = new LaguerreSolver(Config.DEFAULT_ROOTS_CHOP_DELTA);
10261026
// see https://github.com/Hipparchus-Math/hipparchus/issues/177 for initial value
10271027
// https://stackoverflow.com/q/65960318
1028-
return solver.solveAllComplex(coefficients, 1.0);
1028+
return solver.solveAllComplex(coefficients, 100_000, 1.0);
10291029
} catch (MathRuntimeException mre) {
1030-
//
1030+
// mre.printStackTrace();
1031+
// org.hipparchus.exception.MathIllegalStateException: maximal count (100,000) exceeded
10311032
}
10321033
return null;
10331034
}

0 commit comments

Comments
 (0)