Question: Here is the code to do the Gaussian elimination without pivoting. I really just need help with calculating the analytical values and numerical values. Please

 Here is the code to do the Gaussian elimination without pivoting.

I really just need help with calculating the analytical values and numerical

Here is the code to do the Gaussian elimination without pivoting. I really just need help with calculating the analytical values and numerical values. Please show all work and explain each step. Note this is in matlab

a) In Proble 10.1-9 you wrote a code for Gaussian elimination without pivoting. Use it on the matrix equation 10.1. Gaussian Elimination 1525 which was discussed in Section 10.1.1. Let be really small. ie.. lel-10-8 and the two elements of x be "simple' fractions, such as r1 recalculate ri and r2 by Gaussian elimination. Print out the analytical values and the numerical values to full accuracy (using "format long") and you will, hopefully, see a large loss of accuracy Then repeat the numerical calculation of r using partial pivoting and see the improvement b) What happens if, instead of Gaussian elimination, we solve the matrix equation (10.1-11) directly by r2Calculate b and b2 oby hando. Then That is, we calculate A-1 explicitly, and then multiply it by b to obtain calculations from the previous part and r2. Add this to the function x-GEnp (A, b) n size (A, 1); x -zeros (n,1); %%Step 1: row operations for j-1:n-1 for i-j+1:n end end UAb (:,1:end- 1); beta Ab (:,end); s Step 2: solving U*xbeta by backward substitution x (n)beta (n)/U(n,n); for j n-1:-1:1 x(j)(beta(j) - U(j,j+1:n)*x (j+1:n))/U(j,j); end en

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!