Question: Using "for" loops to attach coefficients to functions

Hi! I'm wondering how I'd go about attaching multiple coefficients from a list to a function, while storing the output as a list. An example of a simple case (the only one which I've been able to get to work) is as follows: for j from 1 by 1 to 3 to f_j := j*sin(x) end do And then, when I want to manipulate the output, I have to handle each output element separately. I also know how to attach a list of coefficients from a list, but handling an expression like f_2*tan(23) = 2*tan(23)*x^2 is cumbersome and a bit silly, and not at all adequate for expressions with multiple terms. I'm sure there are much better ways to do this. Any help would be great! Thanks! Joe
Please Wait...