ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 29 Sep 2020 03:24:15 -0500too many for loopshttps://ask.sagemath.org/question/53647/too-many-for-loops/ I am trying to solve a Diophantine system with more than 20 variables. I have been trying to use:
\\
for a in srange(1,100):
for b in srange(1,a+1):
.
.
.
if (a+b+...)^(1\2) in ZZ and if (a+b+...)^(1/3) in ZZ:
print(a,b,...)
The problem is I have more than 20 variables and hence more than 20 of these for loops and Python doesnt allow that. Any help on an easy workaround would be greatly appreciated! This is not for homework or anything, I am just trying to do some computational research on Diophantine systems and I am running into some trouble. brennanTue, 29 Sep 2020 03:24:15 -0500https://ask.sagemath.org/question/53647/