Skip to content

Commit e3d6190

Browse files
committed
WIP #1056 in diophantinePolynomial only call QuadraticSolver.solve
- suggested by @Mangara - `QuadraticSolver.solve` already defers to `ParabolicSolver`
1 parent 46372e5 commit e3d6190

File tree

1 file changed

+0
-8
lines changed
  • symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin

1 file changed

+0
-8
lines changed

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

-8
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
import io.github.mangara.diophantine.QuadraticSolver;
9797
import io.github.mangara.diophantine.Utils;
9898
import io.github.mangara.diophantine.XYPair;
99-
import io.github.mangara.diophantine.quadratic.ParabolicSolver;
10099
import io.github.mangara.diophantine.quadratic.PellsSolver;
101100

102101
public final class NumberTheory {
@@ -6725,13 +6724,6 @@ private static IASTAppendable diophantinePolynomial(
67256724
return result;
67266725
}
67276726
}
6728-
if (a.signum() != 0 || b.signum() != 0 || c.signum() != 0) {
6729-
// D := b^2 - 4ac && D == 0
6730-
BigInteger D = b.multiply(b).subtract(a.multiply(c).multiply(BigInteger.valueOf(4)));
6731-
if (D.signum() == 0) {
6732-
diophantineSolver = ParabolicSolver.solve(a, b, c, d, e, f);
6733-
}
6734-
}
67356727
if (diophantineSolver == null) {
67366728
diophantineSolver = QuadraticSolver.solve(a, b, c, d, e, f);
67376729
}

0 commit comments

Comments
 (0)