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
diophantine()
syms
In diophantine.py line 488--490
diophantine.py
dict_sym_index = dict(zip(syms, range(len(syms)))) return {tuple([t[dict_sym_index[i]] for i in var]) for t in diophantine(eq, param, permute=permute)}
I think we should switch syms and var here. We want returns in the order of syms rather than var. Otherwise, it makes no sense to me. So it should be
var
dict_var_index = dict(zip(var, range(len(var)))) return {tuple([t[dict_var_index[i]] for i in syms]) for t in diophantine(eq, param, permute=permute)}
The text was updated successfully, but these errors were encountered:
Can you give examples of how the output from diophantine would be different?
diophantine
Sorry, something went wrong.
>>> diophantine(x1+2*x2+3*x3) {(t_0, t_0 + 3*t_1, -t_0 - 2*t_1)} >>> diophantine(x1+2*x2+3*x3, syms=[x3, x1, x2]) {(t_0 + 3*t_1, -t_0 - 2*t_1, t_0)}
After the code modification
>>> diophantine(x1+2*x2+3*x3) {(t_0, t_0 + 3*t_1, -t_0 - 2*t_1)} >>> diophantine(x1+2*x2+3*x3, syms=[x3, x1, x2]) {(-t_0 - 2*t_1, t_0, t_0 + 3*t_1)}
No branches or pull requests
In
diophantine.py
line 488--490I think we should switch
syms
andvar
here. We want returns in the order ofsyms
rather thanvar
. Otherwise, it makes no sense to me. So it should beThe text was updated successfully, but these errors were encountered: