Question: GenerateMatrix: Help on Constant Matrix B

Hello guys. i have  a little bit of problem I used the GenerateMatrix package to generate the coeff. matrix A and the Constant Matrix b. Then I executed a LinearSolve on both in a loop that will run N-times. At each run, Matrix A stays unchanged while Matrix B changes because of the re-initialisation of the variables therein. Variables (y[0] and z[0]). Matrix B is in variables y[0], z[0] and h which is constant throught the entire loop. My problem is how to keep the constant matrix B un-evaluated because I noticed that after i did LinearSolve, matrix B was completely evaluated and for the loop to run the next time, i'll need Matrix B in it's un-evaluated state (the state after the GenerateMatrix command usage) and some re-initialisations just before the loop goes back. Pls help. Pls. find the attached copy of my Worksheet. In the worksheet, I hand coded matrix B with the proceedure matB(). Pls I want another way of doing this. Linear11.mw

I hope my explanation is clear enough.

Please Wait...