I want to compute an integral of the form: .
I am struggling to implement this in python. Is there a programic way to accomplish this? I tried doing this with several for loops but I'm stuck on the error SystemError: too many statically nested blocks
.
fs = {}
for i in range(100):
fs[i] = lamda x: x*i
for x1 in np.arange(0,1,.01):
for x2 in np.arange(0,1,.01):
....
for x100 in np.arange(0,1,.01):
for i in range(100):
exec("summ+= fs[i](x%i"%i)