Next:
About this document ...
Up:
assign2
Previous:
assign2
Assignment 2 - Solving Sets of Equations
Solve the following linear system by using
Gauss-Jordan Method
;
Hint:
Modify the MATLAB code for
Upper Triangularization Followed by Back Substitution (uptrbk.m)
.
Modify the MATLAB code for
:Factorization with Pivoting (lufact.m)
so that
and
are output, then by using solve the following linear system;
Hints:
You can check your results by using MATLAB as;
>>[L,U,P]=lu(A) >>inv(P)*L*U
Solve the following linear system by using
Gauss-Seidel Iteration
;
Start by
.
Tabulate the iteration. Compare with the
Jacobi Iteration
.
Hint:
Modify the MATLAB code for
Jacobi Iteration (jacobi.m)
.
2005-07-17