Attached is a question which needs to be answered using C++. Solving a linear sy
ID: 2994970 • Letter: A
Question
Attached is a question which needs to be answered using C++.
Solving a linear system of equations of the form Ax = b is commonplace in aerospace-related numerical methods, particularly in computational fluid dynamics (CFD) or finite element analysis (FEA). For this assignment, you will need to write two codes. For the first: you will implement Gaussian Elimination in the manner it was presented in class. Do no use other formulations. Your program should accept a matrix. A, either by reading it from a file or from the keyboard at runtime. Your matrix may not be hardcoded. Likewise, your code should accept a column vector, b. Then your matrix must be passed to one or more subroutines that return the solution to Ax = b. Use your code to solve the two following matrix systems. For your second code, implement Thomas' algorithm. This code should function in the same manner as the Gaussian Elimination code, and the algorithm must be in its own subroutine. Use this code to solve the following systems of equations: All answers must be written to a file and properly formatted with exactly 3 decimal points and with proper alignment.Explanation / Answer
code
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.