I am currently working on a program to test for ideal angle-values to construct something. Now I'm stuck at a nested-for-loop which I'm going to attach below. While idealy it would count each 'a' to 9000, it already takes almost forever if values are set like below. Is there a way to speed up this nested loop? Or can i somehow assign more ressources to python?
for a1 in xrange(15, 91):
for a2 in xrange(15, 91):
for a3 in xrange(15, 91):
for a4 in xrange(15, 91):
for a5 in xrange(15, 91):
for ite in xrange(1, 1000):
ok = mathmatvec(a1, a2, a3, a4, a5, ite)
if ok == 1:
v[0] = a1
v[1] = a2
.
.
76 * 76 * 76 * 76 * 76 * 999=2532989850624= 2.5 trillion combinations? Even if operation to perform would be nothing (replace last for statement body with "pass") it'll still take "almost forever".@numba.jitbefore it