I have a triplet, for example (1806336, 1849600, 93636)
and I need to solve the diophantine equation:
x^2-2w^2+2y^2-z^2-constant=0
Here the constant is 1806336 + 1849600 - 93636
.
What I tried is:
from sympy.solvers.diophantine.diophantine import diop_general_pythagorean
from sympy.abc import x, w, y, z
tuple = [1806336, 1849600, 93636]
s = tuple[0]
t = tuple[1]
u = tuple[2]
diop_general_pythagorean(x**2 - 2*w**2 + 2*y**2 - z**2 - s-t+u)
which yields the exception
"This equation is not yet recognized or else has not been simplified sufficiently to put it in a form recognized by diop_classify()."
Without success, I also tried to avoid using the constant as a variable and wrote directly:
diop_general_pythagorean(x**2 - 2*w**2 + 2*y**2 - z**2 - 3562300)
The error remains. It would be great to have a chance solving such a diophantine equation directly using a constant which I may express as a variable.