Question: NEED HELP WITH PART B PLEASE! THANK YOU! a) Write a program that performs Gaussian elimination with partial pivoting, followed by back substitution. The partial
NEED HELP WITH PART B PLEASE! THANK YOU!

a) Write a program that performs Gaussian elimination with partial pivoting, followed by back substitution. The partial pivoting in your code must be done without using a row interchanging indication vector, i.e., by directly swapping the rows of the augmented matrix, if needed. You can do this by appropriately modifying the part of the code gauss_elim.m that performs Gaussian elimination from your HW 1. Attach a printout of your code to your homework. Run the following (below is an example of Matlab code) \[ \begin{array}{l} A=\left[\begin{array}{llllllllllllllllll} 3 & 1 & 4 & -1 & ; & 2 & -2 & -1 & 2 & ; & 5 & 7 & 14 & -8 ; & 1 & 3 & 2 & 4 \end{array} ight] \\ \mathrm{b}=[7 ; 1 ; 20 ;-4] \\ x=\text { gauss_elim }(\mathrm{A}, \mathrm{b}) \\ x \text { = gauss_elim_partial_pivoting }(A, b) \\ \end{array} \] with and without partial pivoting. Compare the results. Write a program that performs Gaussian elimination with partial pivoting followed by back substitution. The partial pivoting in your new code must be done by using a row interchanging indication vector. Attach a printout of your code to your homework. Run it as in part (a) and write your results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
