Question: vector of functions

Hi. I have a question that concerns indices of vector of functions within for-loop.

I have a following piece of code:

wich results to
                                   sin(x)
                                   ------
                                     x   
                             -cos(x) x + sin(x)
                             ------------------
                                      3        
                                     x         
                                  D(f[2])(x)
                                - ----------
                                      x     
How do I make Maple to show result for f[3](x) explicitly?

Now I try to write the same code using for-loop:


The result is different:
                                   sin(x)
                                   ------
                                     x   
                                  D(f[3])(x)
                                - ----------
                                      x     
                                  D(f[3])(x)
                                - ----------
                                      x     
What's wrong?

Thank you.

Please Wait...