Question: Convert Sum to Matrix form

Hi all,

I have this two equations:

ap[k]=Sum(a[n]*sin(n*theta)*f(n,k),n=1..nn);

a[n]=Sum(ap[k]*g(n,k),k=1..kk);

Where ap[k] and a[n] are the unknowns.

I want to convert the two equations in the Matrix form A*X=b to solve it numerically and where X=[ap[k, k=1..kk] and a[n, n=1..nn]] and A the matrix with a rand (nn+kk,nn+kk) the coef and b the second member and a vector (nn+kk)

Thank you for any help to do this with Maple

Please Wait...