Professional Documents
Culture Documents
Fixed-Point Iteration Method
Fixed-Point Iteration Method
Fixed-Point Iteration Method
BSEE 4-2
Laboratory Exercise #3
Introduction:
Fixed point iteration method is also one of the methods use for root finding. Fixed point
iteration are a open method unlike the first 2 topic that we discuss this method do not use
x = g(x), in such a way that any solution of the equation (2), which is a fixed point of g, is a
solution of
equation (1).
Objectives:
3. To perform Fixed-Point Iteration Method with sample equation and to find its roots using the
Materials:
Procedure:
Ramos, Romeo James B
BSEE 4-2
just like the other method, creating a simple and correct code will make fixed point iteration in
MATLAB easily and fast
I use the disp function in MATLAB to show what kind of program that is running which is
Fixed-Point Iteration Method.
I use the disp function again to show how to put the function clearly and there is an
example for further clarification.
Then, another set of instruction again for the user to input what kind of x = g(x) equation
that would be derived from the first equation.
Then, I assign letters and combination of letters for different values for me to create the
code for the operation easily and quickly. Those values will be from the user that’s why I
use the function input.
Just like doing Fixed-Position Iteration Method manually, the x = g(x) equation will be
dependent on the user on how to come up with that based on the first equation. The left
and right interval will also be dependent on the user and the number of iterations and the
tolerance so the roots will be found.
Ramos, Romeo James B
BSEE 4-2
This step will be the operations, conditions and the output part of the source code and
this is a hard part because if the code here is wrong the program would not run or it will
I use the function “for” for the operation part of the program to operate the number of
Fixed point iteration method is a simple method that you just need to derived an
equation x = g(x) from the first equation so the operation part of the source code is just
simple. The initial guess will be put into the derived function and then the output will be
the new input on the next iteration. As you are approaching the minimum percent error,
you are also approaching the real value of the roots of the equation.
As you can see from the operation above that the error is equals to the (Xnew -
Xold)/(Xnew), meaning that the lesser the error, the root is also approaching near the
original roots.
Then, the operation will stop and finish if the percent error is less than the desired
Equation 2
Equation 3
Ramos, Romeo James B
BSEE 4-2
Since, our example is a quadratic equation meaning there are two roots that we can get,
that’s also why we need to come up with many derived equations to find those roots.
Based on the intermediate value theorem, we can conclude that if we get the derivative
of the equation and substitute a value between our two guess intervals and the result is
less than one. We are assured that it is converging, meaning it is getting closer to the
original roots of the equation. Since, this is an open method, it can diverge as oppose to
converge, meaning as we substitute a value between our two guess intervals and the
As you can see from the different equations above, we can only get the equations 1 and
Then for the number of iterations I choose to put 5 so it will give me 5 values of roots
set the value of tolerance to a lower value, the value of the roots will be closer and closer
Here is the finding of root using fixed point iterations, just like we get when using matlab,
we can see here that one of the solution that we get are diverging while the other 2 are
converging. Diverging means no matter how many iteration where made it will be repeated
again and again with the same results.
Conclusion:
MATLAB is a very powerful and useful platform in which you can create a source code
for different types of operation. Creating source code for the fixed-point iteration approach will
provide you with a better understanding of how it works in practice. It's similar to making an
application that allows a user to quickly and simply locate the roots. We only need to check if
our answer is converging or diverging on the original roots of the problem because this is an
open technique. We may determine the derivative of the equation and then check if it is
converging or diverging using this fixed-point iteration method by replacing a value between two
guess intervals and checking if it is less than one; if it is, it is converging; if not, it is diverging.
Ramos, Romeo James B
BSEE 4-2
Final Score:
Ramos, Romeo James B
BSEE 4-2