Professional Documents
Culture Documents
The interpretation of The interpretation of The interpretation of The interpretation of The interpretation of
data and discussion data and discussion data and discussion data and discussion data and discussion
C. Interpretation of
were not based on the were based on the were based on the were based on the were based on the
data and result and data result and data result and data result and data result and data
discussion gathered during the gathered during the gathered during the gathered during the gathered during the
experiment. experiment, but does experiment, and experiment, and experiment and are
not present clarity. somehow presents mostly presents clarity. presented very clearly.
clarity.
The conclusion was The conclusion was The conclusion was The conclusion was The conclusion was
not based on the based on the based on the based on the based on the
D. Conclusion
objectives and all objectives but not all objectives and few of objectives and most of objectives and all of
ideas are not coherent of the ideas are the ideas are coherent the ideas are coherent the ideas are coherent
or clear. coherent nor clear. but not too clear. and clear. and presented very
clearly.
The words used were The words used were The words used were The words used were The words used were
not appropriate, had somehow appropriate, appropriate, had good appropriate, had very appropriate, had
poor grammar, had had good grammar, grammar, had good good grammar, had excellent grammar,
E. Use of Language
bad sentence had good sentence sentence construction very good sentence had excellent
construction and ideas construction and not and few of the ideas construction and sentence construction
were not clearly all ideas were clearly were clearly almost all of the ideas and all of the ideas
expressed. expressed. expressed. were clearly were clearly
expressed. expressed.
The laboratory report The laboratory report The laboratory report The laboratory report The laboratory report
F. Promptness was submitted two or was submitted one was submitted three to was submitted beyond was submitted on
more weeks late. week late. six days late the time assigned to time.
two days late.
AVERAGE: (A+B+C+D+E+F)/6
Exercises:
1. Determine the unknown variable by using LU decomposition. Use additional sheet for the
syntax
(a)
3v + 6x - 3y + 3z = 18
-3v + 6x + 6y - 3z = 9
3v + 6x - 3y + 6z = 24
6v - 3x + 6y + 6z = 42
Answer:
Syntax:
(b)
Answer:
Syntax:
2. Determine the unknown variable by applying Gauss-Jacobi Method and Gauss-Seidel
Method, compare the results of the two methods. Use additional sheet for the syntax.
(a)
3v + 6x - 3y + 3z = 18
-3v + 6x + 6y - 3z = 9
3v + 6x - 3y + 6z = 24
6v - 3x + 6y + 6z = 42
Answer:
Syntax:
Gauss-Seidel Method
Answer:
Syntax:
(b)
4X1 – 3X2 + X3 – X4 + 2X5 – X6 = 8
-X1 – 3X2 + X3 + X4 – 2X5 + X6 = -7
-3X1 – 2X2 + X3 – 3X4 + X5 – 4X6 = 4
2X1 + X2 – 2X3 – 2X4 + X5 + 4X6 = 9
X1 + X2 – 3X3 + X4 – 2X5 + 5X6 = 2
-X1 – 4X2 + 5X3 + X4 + 4X5 + 5X6 = 9
Gauss-Jacobi Method
Answer:
Syntax:
Gauss-Seidel Method
Answer:
Syntax:
3. Create and run the following M-files, using the given linear equations at problem 1(a)
and 1(b). Compare the results and explain
The result was the same and the only difference is that unlike the original code
the value of Matrix A and B were already set upon the start of the code while in
this new code the users are ask in to type any values, they want for Matrix A and
B.
LU DECOMPOSITION
Create and run the following M-files, using the given linear equations at problem 2(a) and
2(b). Compare the results and explain
Create and run the following M-files, using the given linear equations at problem 2(a) and
2(b). Compare the results and explain
Upon running the M-files we could observe that both of the codes
produce the same output value. This new code is much easier to use since
the system just ask you the values that you need and it automatically solve
for the problem
Interpretation
In the experiment entitled “Solving a System of Linear Equations” the software MATLAB
was used in order to solve and execute the given equation. This experiment aims to help the
students so that they may be able to (1) understand the matrix operation, (2) know how to solve
linear equations using the software MATLAB, (3) know how to apply the direct method in
evaluating linear equations and (4) understand the iterative method in solving linear equations
The students were asked to do the first and second part of the experiment which was
factorization of a given square matrix into two triangular matrices, one upper triangular matrix and
one lower triangular matrix, such that the product of these two matrices gives the original matrix.
In MATLAB, there are 2 ways in which you can solve this problem. First, using iterative methods
such as Gauss-Jacobi and Gauss-Seidel method. These two methods represent an alternative to
the process of elimination. The second way to solve linear equations is by direct procedure. The
Finally, the students were asked to construct an M-file containing the code provided for LU
Decomposition, Gauss - Jacobi Method and Gauss - Seidel Method to compare it to the codes
and results of the previous parts. It was after running all the codes provided that concluded that
there much more commands you can use so you can easily solve the problem since if you use
the normal method like Gauss - Jacobi and Gauss - Seidel, a lot of your time can be wasted.
Conclusion
After the experiment entitled “Solving a System of Linear Equations” the students were able
to create a code that was able to solve the given equation they were able to concluded that
MATLAB is a program that provides numerous tools that can enable students to get around
easily in solving for linear equations A system of linear equations is solved in several means.
You need to identify the various commands to use so you can quickly get the answer and in by
using the direct method to solve linear equations you can really get the answer much faster but
these methods can be slow to operate on large sparse matrices, on the other hand, using the
iterative method, you could get the approximate solution to the linear system after a finite number
of steps.