0% found this document useful (0 votes)
87 views2 pages

THQ Ch2

The document provides the steps to solve a system of 3 equations with 3 unknowns using Gaussian elimination and Gauss-Seidel iteration methods. For Gaussian elimination, it shows setting up the coefficient matrix, performing forward elimination to transform the matrix into row echelon form, and then back substitution to solve for the unknowns. For Gauss-Seidel, it shows developing the equations in terms of the unknowns, providing the iteration formulas, and running 3 iterations with initial guesses of 0 to calculate approximations of the unknowns that converge to the solution.

Uploaded by

lim chuan yi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
87 views2 pages

THQ Ch2

The document provides the steps to solve a system of 3 equations with 3 unknowns using Gaussian elimination and Gauss-Seidel iteration methods. For Gaussian elimination, it shows setting up the coefficient matrix, performing forward elimination to transform the matrix into row echelon form, and then back substitution to solve for the unknowns. For Gauss-Seidel, it shows developing the equations in terms of the unknowns, providing the iteration formulas, and running 3 iterations with initial guesses of 0 to calculate approximations of the unknowns that converge to the solution.

Uploaded by

lim chuan yi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter 2 (Naive–

Gauss) Take Home

Fill in the blank with the correct

Given the
10𝑥1 + 2𝑥2 − 𝑥3 = 27
−3𝑥1 − 6𝑥2 + 2𝑥3 = −61.5
𝑥1 + 𝑥2 + 5𝑥3 = −21.5

a) Forward elimination

Arrange the equations in a matrix form

10 2 -1 27
−3 −6 2 −61.5
1 1 5 -21.5

Transform the matrix to:

10 2 -1 27
0 -5.4 1.7 -53.4
1 0.8 5 -21.5

Transform the matrix to:

10 2 -1 27
0 -5.4 1.7 −53.4
0 0.8 5.1 -24.2

Transform the matrix to:

10 2 -1 27
0 -5.4 1.7 −53.4
0 0 5.352 −32.1111

b) Back substitution:

x3 -6
x2 8
x1 0.5
Chapter 2 (Gauss
Seidel) Take Home

Fill in the blank with the correct

Given the
8𝑥1 + 2𝑥2 − 2𝑥3 = −2
10x1 + 2x2 + 4x3 = 4
12x1 + 2x2 + 2x3 = 6

Develop the equations:

−2 −2 x2 +2 x 3
x1 =
8

−1 − x 2+ x 3
=
4

4 − 10 x 1 −4 x3
x2 =
2
= 2-5x1-2x3

6 −12 x1 −2 x2
x3 =
2
= 3-6x1-x2

With the initial values of x1 = x2 = x3 = 0, calculate to 3 iterations

x1 x2 x3 a1(%) a2 (%) a3 (%)


Initial value 0 0 0 - - -
Iteration #1 -0.25 3.25 1.25 100 100 100
Iteration #2 -0.75 3.25 4.25 66.66 0 70.588
Iteration #3 0 -6.5 9.5 - 146.153 55.263

You might also like