We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For binary_quadratic types, permutations of the solution are returned. This feature may apply to other types, too:
binary_quadratic
>>> diophantine(x**2+y**2-15**2) {(-12, -9), (9, -12), (0, 15), (-15, 0), (15, 0), (-9, -12), (0, -15), (-12, 9), (-9, 12), (12, -9), (12, 9), (9, 12)}
It seems like only the base solution should be returned in this case and the permutations when permute=True:
permute=True
>>> set([tuple(sorted([abs(i) for i in i])) for i in _]) {(0, 15), (9, 12)}
The text was updated successfully, but these errors were encountered:
I would like to work on this issue
Sorry, something went wrong.
No branches or pull requests
For
binary_quadratic
types, permutations of the solution are returned. This feature may apply to other types, too:It seems like only the base solution should be returned in this case and the permutations when
permute=True
:The text was updated successfully, but these errors were encountered: