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)
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 0Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started