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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!