Question: Loop variable scope problem

I'm filling an array of functions like this:

 

 

but when I print either of the functions like phi[1], phi[2], etc they all have the same value like if i is equal to n.

 

What am I doing wrong?

Please Wait...