Sie sind auf Seite 1von 2

Name:__________________________________ ES 84 2nd Long Exam Score: ___________

Section:____________ December 2016

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):

a.) Show the equations in augmented matrix form. (5 pts)


(5pts if answer is as shown below. If answer is wrong, give 2 pts if in augmented form.)

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: ___________

Section:____________ December 2016

c.) Solve for the 1, 2, and 3. (15pts) (5points each)

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

0 1 -0.2 -0.3 0.5 ______

1 1.1 - 0.25 - 0.35 0.5666667 0.1394433

2 1.125 - 0.2333333 - 0.3466667 0.5644444 0.0303122

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

Das könnte Ihnen auch gefallen