Question: c++ please. Write a computer program that solves the tridiagonal system using Naive Gauss Elimination. Note that you SHOULD NOT write complete code for Gauss

 c++ please. Write a computer program that solves the tridiagonal system

c++ please.

Write a computer program that solves the tridiagonal system using Naive Gauss Elimination. Note that you SHOULD NOT write complete code for Gauss Elimination, but a simple code that is enough to solve the following system. The program should take the matrix A and vector B as arguments and output the solution to the system of equations. It should be able to take any n*n matrix, verify that the matrix is tridiagonal and then solve it. You are required to include loop(s) in the program. You can use the following tridiagonal system as an example. (3 23 000o [45 43 34 430 55 220 183 67 89 76] 1377 0 0 005 56] The solution to this problem (up to six significant figures after decimal): X = [-11.930346 3.512654-1.499997 4.930661-5.750636 1.870592]

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!