Instructions: in The Space Provided. Maintain at Least 6 Decimal Places in All Computations. Answers at The Back of This Paper)
Instructions: in The Space Provided. Maintain at Least 6 Decimal Places in All Computations. Answers at The Back of This Paper)
Instructions: in The Space Provided. Maintain at Least 6 Decimal Places in All Computations. Answers at The Back of This Paper)
Instructions: Box your final answers in the answer sheets and write them on this questionnaire
in the space provided. Maintain at least 6 decimal places in all computations.
1. Use Gauss Elimination with partial pivoting (no scaling) for the equations below (Write final
answers at the back of this paper):
b.) Show the result of forward elimination with partial pivoting. (24pts)
(2points per element in the matrix)
The End
Name:__________________________________ ES 84 2nd Long Exam Score: ___________
2. Use Gauss-Seidel Method to solve for unknowns in the following equations up to an error of
0.05. Use L2 Norm (Euclidean Norm) in computing the error.
2 x1 6 x2 x3 4 1
.2 L2 Norm :
2 x1 x2 2
use initial guesses: x
( xnew xold )
n
2 x3 3 x4 1 .3 er i i
2
i 1
3 x2 5 x3 1x4 3 .5
a.) Is the system diagonally dominant? (5pts) no as it is. Yes, if you rearrange the rows.
b.) Fill in the space provided the answers on each iteration. (25 pts)
iter X1 X2 X3 X4 er
c.) How many iterations did it take to reach a normalized relative error of less than 0.05? (10 pts)
2 iterations
3. If twice the age of son is added to age of father, the sum is 56. But if twice the age of the father
is added to the age of son, the sum is 82. Find the ages of father (x1) and son(x2). Use LU
decomposition to solve this problem.
1 2 1 0
a.)(15pts) U= (5pts)L= 2 1
0 3
56
b.) (10pts) resulting vector of forward substitution =
30
c.) (10pts) Ages of the father and the son? [x1,x2] = [36, 10]
The End