Question: As soon as possible!Thx very much! upper one is question, the second photo is what we are learning. the program should not be complex 3.

3. (40%) Based on Gaussian Elimination procedure, write a computer program for solving the system of linear equations with unique solution. Select five systems by yourself and try to solve five systems with your program. It is required that the first is a 1 x 1 system (20%), the second is a 2 x 2 system (20%), the third is a 3 x 3 system (20%), the fourth is a 4 x 4 system (20%), the fifth is a 5 x 5 system (20%). List the systems in augmented matrix form and give the solutions from your program. 0 U U - 0 -3 0 0 3 10 0 15 5 0 4 8 0 18 6 Multiplying the second row by - I and then adding - 5 times the new second row to the third row and -4 times the new second row to the fourth row gives 1 3 0 2 0 0 0 0 1 2 0 3 1 0 0 0 0 0 0 0 0 0 0 0 0 6 2 -2 17 Interchanging the third and fourth rows and then multiplying the third row of the re- sulting matrix by gives the row echelon form 1 3 -2 0 2 0 0 0 0 1 2 0 3 1 This completes the forward phase ince 0 0 0 0 0 1 3 there are seros below the leading! 0 0 0 0 0 0 0 Adding - 3 times the third row to the second row and then adding 2 times the second row of the resulting matrix to the first row yields the reduced row echelon form 3 0 4 2 0 0 0 0 1 2 0 0 0 This completes the backward phistesince 0 0 0 0 0 1 there are seres above the leading 0 0 0 0 0 0 0 The corresponding system of equations is x + 3.x2 + 4x4 + 2x5 =0 x + 2x4 =0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
