Question
Programming Part: For each programming problem, please submit the code and the output by pasting them into a word document and attaching them to your
Programming Part: For each programming problem, please submit the code and the output by pasting them into a word document and attaching them to your homework.
1. Implement the back-substitution algorithm in Matlab to solve Ux = b where U = [uij]1010, and uij =(cos(ij), i ? j 0, i > j , b = [bi1]101,bi1 = tan(i).
1
2. Gauss-Jordan Method: This method is used to solve linear systems as an alternative to Gaussian Elimination. In addition to using pivot element a(k?1) kk to eliminate every element below in the kth column, but also use it to eliminate every element above it. This results in the augmented matrix being diagonal and therefore back-substitution is not needed (instead xk = b(n?1) k a(n?1) kk for k = 1,...,n) ? ? ? ? ? ? ? a(n?1) 11 0 ... 0 b(n?1) 1 0 a(n?1) 22 ... . . . b(n?1) 2 . . . ... ... 0 . . . 0 ... 0 a(n?1) nn b(n?1) n ? ? ? ? ? ? ? Modify the Gaussian Elimination code to incorporate the Gauss-Jordan Method and re-solve problem 2 (above) to check your work.
Step 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