Question: 1201 1) a) Write a Matlab function program thomas(ef.gr) based on the pseudocode below which solves a tridiagonal system of n linear algebraic equations. Here
1201 1) a) Write a Matlab function program thomas(ef.gr) based on the pseudocode below which solves a tridiagonal system of n linear algebraic equations. Here e, f and g are vectors containing the tridiagonal elements of the coefficient matrix, r is the right hand side vector and x is the solution vector. (a) Decomposition OFOR 2. END 00 (b) Forward substitution OFOR 2. END DO (e) Back substitution END 00 FIGURE 11.2 Thomas olgorithm, on LU decompostion method for ridi agonal systems b) Write a Matab main program which calls the function program developed in part (a) to solve the following tridiagonal system 8 -2 -294 -37-111 - -2 12-511 11 -3 15s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
