Question: Use in a for loop

Hi Everyone,

I'm trying to impletement the solution in a for loop. As an example, consider

for i from 1 to 10 do print(evalf(Int(proc (y) options operator, arrow; y^i end proc, -1/2 .. 1/2))) end do

For each iteration the output is the same, even though the values of the integrals should be the same. I see that the output is actually the first interation repeated 10 times.

Is there a solution for this problem?



Please Wait...