-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
I'm trying to solve 26x^2-91xy-26y^2-58x-59y-71=0
The solver (directly running the C version or running through webassembly) returns
x0 = -2
y0 = -1
with 2 recurrence equation and 2 sets of parameter:
Recursive solutions:
xn+1 = P xn + Q yn + K
yn+1 = R xn + S yn + L
where:
P = -20 959202 739850 883948 245647 530545 (32 digits)
Q = -5 566018 877141 698132 634154 763072 (31 digits)
K = -8 718342 976376 307924 004248 001090 (31 digits)
R = -5 566018 877141 698132 634154 763072 (31 digits)
S = -1 478136 669854 940484 026105 859793 (31 digits)
L = -2 315281 844744 993080 179339 614324 (31 digits)
and also:
P = -1 478136 669854 940484 026105 859793 (31 digits)
Q = 5 566018 877141 698132 634154 763072 (31 digits)
K = 3 912238 321752 930146 204026 268958 (31 digits)
R = 5 566018 877141 698132 634154 763072 (31 digits)
S = -20 959202 739850 883948 245647 530545 (32 digits)
L = -14 731785 493753 396606 824761 778100 (32 digits)
When using a different solver, I get the following results which are not found here:
x = 4611818748
y = 1224735049
and also:
x = -487959346597421219678
y = 1837442362285426324051
I tried using older version of the quad.c based solver and as far as I can see, none are finding it.
I did try with the java solver, and that one seems to find them.
I've forked your repo and created a branch where I have an html file with the output of running both quad.c and quad.java (with teach/step enabled):
- https://raw.githack.com/sdemarre/calculators/refs/heads/experiments-to-debug-quad-solver-issue/solve_c.html
- https://raw.githack.com/sdemarre/calculators/refs/heads/experiments-to-debug-quad-solver-issue/OldApplets/solve_java.html
According to this, it looks like the java solver does find the second solution, but apparently not the third.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels