Question: How to write a nested loops as follows


I think we will write nested for loops or nested sequences. But I can' t achieve.

Could you help me?


In fact, the original question is as follows:


where it is a standard inner product on L^2 and u(x,t) is a function. For example; u(x,t) =x*t etc.

(The screenshots is taken from a book)

I want to write a code for finding Matrix U whose elements are u_ij.

Please Wait...