ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 29 Sep 2020 10:24:15 +0200too 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 10:24:15 +0200https://ask.sagemath.org/question/53647/Error while trying to use srange and for loopshttps://ask.sagemath.org/question/26992/error-while-trying-to-use-srange-and-for-loops/ I am trying to execute some instructions containing for loops and variables in sranges. The instructions are simple; yet I keep getting an error message and can't figure out where the error is. My program is at https://cloud.sagemath.com/projects/f9c3371c-3682-4811-b236-f62976d8fa24/files/scratch.sagews. I am trying to use this simple program to see if I have correctly executed a much larger program.C. ThompsonMon, 01 Jun 2015 01:25:40 +0200https://ask.sagemath.org/question/26992/