Professional Documents
Culture Documents
INTRODUCTION
The process begins by making an initial guess of the root of the function. (2) The
computed value is then inputted back into the function. (3) The result of this operation forms the
next approximation. (4) The operation repeats with this new approximation. (5) The iterative
process continues until the difference between two successive approximations becomes
negligible, or a pre-set number of iterations have been performed.
The simplicity of the Fixed Point Iteration method is one of its main attractions. It doesn't
require complex calculations or manipulations, making it straightforward to implement and
understand. This makes it a popular choice for beginners in numerical analysis. The method
involves repeatedly applying a function to an initial guess until a fixed point is reached. This
fixed point corresponds to the root of the original equation, providing an efficient way to
approximate solutions.
Using the Fixed point method, find the roots of the equation f(x) = 2x4+5x3+2x2+7x+10
when the approximate error of 0.001.
III. METHODOLOGY
This uses Microsoft Excel script to find the roots of f(x) = 2x4+5x3+2x2+7x+10 with the
approximate error of 0.001. The algorithm below shows the procedure in locating the
root of a function using fixed-point iteration method.
1. Start.
4. Rearrange the value of the function so that x is on the left side of the equation:
g(x) = x
8. Find the approximate error for the equation using the error estimator:
Xn = | (Xn – Xprev) / Xn |*100%
9. Repeat steps for nth times until the required tolerance is achieved.
10. Write the root of the given equation, the number of the iteration and the approximate
error.
11. End
The following code is used to find the roots of the equation f(x) =
2x4+5x3+2x2+7x+10. The code will ask the user to set two guesses and it will iterate the
value using the Regula Falsi method to find the roots. The code can be modified allowing
the user to change the tolerance value requirements. This code utilizes the Microsoft
Excel VBA programming language and it runs using the Macros feature in Microsoft.
Sub FixedPointIteration()
Dim x As Double
Dim xn As Double
Dim prevXn As Double ' Variable to store the previous iteration's value
Dim i As Integer
' Set the maximum number of iterations and tolerance for convergence
maxIterations = 1000
ea = 100
prevXn = x
Cells.ClearContents
For i = 1 To maxIterations
xn = (-5 * x ^ 3 - 2 * x ^ 2 - 10) / (2 * x ^ 3 + 7)
Cells(i + 1, 1).Value = i
Cells(i + 1, 2).Value = xn
Cells(i + 1, 3).Value = ea
Cells(4, 5).Value = xn
Cells(6, 5).Value = i
Exit For
End If
prevXn = xn
x = xn
Next i
MsgBox "Fixed-point iteration did not converge within the specified iterations."
End If
End Sub
Using the Macros in MS Excel, the feature will run the program. The program will
ask for the value of the lower bound, upper bound, and tolerance. It will automatically
calculate and iterate the procedure until it reaches the tolerance value and stops. If the
maximum number of iterations is reached without finding the root, it displays an error in
the message box. This program is a practical tool for solving mathematical problems
using Excel.
References:
https://www.collimator.ai/reference-guides/what-is-the-fixed-point-iteration-method
https://byjus.com/maths/fixed-point-iteration/