Question: Write a computer code that uses Gaussian Elimination and Back Substitution to solve the following linear symmetric tridiagonal system of N equations and N unknowns

Write a computer code that uses Gaussian Elimination and Back Substitution to solve the following linear symmetric tridiagonal system of N equations and N unknowns (written in matrix form)

Write a computer code that uses Gaussian Elimination and Back Substitution to

In these equations, the values of the four unknowns:

N = the number of equations (and unknowns),

a = the diagonal coefficients,

b = the super- and sub-diagonal elements,

q = the source coefficients should be specified in separate input lines.

Write your code so that the output is formatted as: x1 = (numerical value) x2 = (numerical value) . . . xN = (numerical value)

ab 0 . -b a b 0 0 -b a -b 0 -b 0 TN-1 0

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!