Answered step by step
Verified Expert Solution
Question
1 Approved Answer
algorithm for Part b 2. Write a code to solve Az b by the Gaussian elimination plus the backward substitution (a) Write a MATLAB function
algorithm for Part b
2. Write a code to solve Az b by the Gaussian elimination plus the backward substitution (a) Write a MATLAB function x-BS(A, b), which implements the backward substitution algorithm. The upper triangular part of A contains all the coefficients and the lower triangular can be nonzero. Column vector b is the right-hand-side vector. Output x is the solution. (b) Write a MATLAB function [A, b]=GE (A, b) which implernents the Gaussian elimination algorithm (page 99). The input is the matrix A and the right-hand-side vector b. The upper triangular part of the output matrix A contains the reduced upper triangular matrix and the lower triangular part does not need to be nonzero. The output b contains the modified right-hand-side vector. (c) Write a MATLAB function x=myLinearSolve1(A, b), which solves Ax b. It first conducts the Gaus- sian elimination to reduce the problem to a upper triangular one. Then call the backward substitution procedure to solve the reduced problem. 2. Write a code to solve Az b by the Gaussian elimination plus the backward substitution (a) Write a MATLAB function x-BS(A, b), which implements the backward substitution algorithm. The upper triangular part of A contains all the coefficients and the lower triangular can be nonzero. Column vector b is the right-hand-side vector. Output x is the solution. (b) Write a MATLAB function [A, b]=GE (A, b) which implernents the Gaussian elimination algorithm (page 99). The input is the matrix A and the right-hand-side vector b. The upper triangular part of the output matrix A contains the reduced upper triangular matrix and the lower triangular part does not need to be nonzero. The output b contains the modified right-hand-side vector. (c) Write a MATLAB function x=myLinearSolve1(A, b), which solves Ax b. It first conducts the Gaus- sian elimination to reduce the problem to a upper triangular one. Then call the backward substitution procedure to solve the reducedStep 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