SlideShare a Scribd company logo
PRACTICAL
Name- Saloni Singhal
M.Sc. (Statistics) II-Sem.
Roll No: 2046398
Course- MATH-409 L
Numerical Analysis Lab
Submitted To: Dr. S.C. Pandey
OBJECTIVE
1. Create an M-file to implement
Fixed Point Iteration method.
1. Calculate the error and convergence
of this method.
Theory
Fixed point iteration method is based on the principle of finding
a sequence {xn}, each element of which successively
approximates a real root of equation in [a,b]. We re-write f(x)=0
as x=Φ(x).Thus, a root α of the given equation satisfies α= Φ(x)
Therefore, the point remains fixed under the mapping Φ and so
a root of the equation is a fixed point of Φ(x) which is called the
iteration function.
Iterations are generated by the formula xn+1 = Φ(x)
The sequence {xn} of iterations may not converge to a limit. If it
converges, then it converges to α and the
number of iterations required depend upon the desired degree
of accuracy of the root α.
Convergence
The presentation of f(x)=0 as x= Φ(x) is not unique,
therefore, the convergence of {xn } depends upon the nature
of Φ(x).
Using Lagrange Mean Value Theorem:
We conclude the result:
Script File
x0=1; %initial approx
MaxIter=20;
tolX=1e-8;
%iteration Method
x=x0;
xold=x0;
minx=x0;
maxx=x0;
for i =1:MaxIter
x=sqrt(2-log(x)); %function
if x<minx
minx=x;
end
if x>maxx
maxx=x;
end
err(i)=abs(x-xold);
xold=x;
if(err(i)<tolX)
break
end
%display error in iterations
disp(['Error in iteration
',num2str(i),' is =
',num2str(err(i),'%e')])
end
plot(x,x,'*')
hold on
X=linspace(minx,maxx,51);
Y=sqrt(2-log(X));
plot(X,Y)
Output
Plot of the iterated values and the final fixed point
This shows the final
iterated value
=1.3141
satisfying x=Φ(x)
Log Plot of error in i and i+1 iterations
Codes:
Conclusion
• For the given equation f(x)=x2+log(x)-2=0
• the initial approximated root is x0=1 and
f’(1)=0.35<1 so convergence is assured.
• The rate of convergence of err is 0.3099
• Since the rate of convergence is 1(calculated
from log plot), so the method is linearly
convergent.
• The real root is x =1.3141
• And as f(1.3141) is in accepted region as tolx
=1e-8

More Related Content

PDF
Methods of calculate roots of equations
PPTX
Newton Forward Interpolation
PPTX
Newton's Raphson method
PDF
B02110105012
PDF
The International Journal of Engineering and Science (The IJES)
PPTX
Lagrange Interpolation
PPTX
NACA Regula Falsi Method
PDF
03 Data Representation
Methods of calculate roots of equations
Newton Forward Interpolation
Newton's Raphson method
B02110105012
The International Journal of Engineering and Science (The IJES)
Lagrange Interpolation
NACA Regula Falsi Method
03 Data Representation

Similar to Fixed Point Interation (20)

DOCX
Chi-squared Goodness of Fit Test Project Overview and.docx
DOCX
Chi-squared Goodness of Fit Test Project Overview and.docx
DOC
BALANCING BOARD MACHINES
PPTX
Secant method
PDF
Exponential-plus-Constant Fitting based on Fourier Analysis
PPTX
Newton Backward Interpolation
PDF
Numerical Study of Some Iterative Methods for Solving Nonlinear Equations
DOCX
Numerical Methods Lab - Shakil Anower Samrat
PPTX
Newton cotes integration method
PDF
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
PDF
Roots of equations
PPTX
DIFFERENTIAL CALCULUS AND TRIGONOMETRY Dharani.pptx
DOCX
Roots of equations
DOCX
Equations root
PPTX
GROUP-4 PRESENTATION ON NR-METHOD.pptx
PDF
Numerical Study of Some Iterative Methods for Solving Nonlinear Equation.pdf
PDF
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
PDF
OPERATIONS RESEARCH
PDF
Derivative rules.docx
PDF
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
BALANCING BOARD MACHINES
Secant method
Exponential-plus-Constant Fitting based on Fourier Analysis
Newton Backward Interpolation
Numerical Study of Some Iterative Methods for Solving Nonlinear Equations
Numerical Methods Lab - Shakil Anower Samrat
Newton cotes integration method
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Roots of equations
DIFFERENTIAL CALCULUS AND TRIGONOMETRY Dharani.pptx
Roots of equations
Equations root
GROUP-4 PRESENTATION ON NR-METHOD.pptx
Numerical Study of Some Iterative Methods for Solving Nonlinear Equation.pdf
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
OPERATIONS RESEARCH
Derivative rules.docx
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Ad

More from Saloni Singhal (20)

PPTX
Finite Difference Method
PPTX
Runge Kutta Method
PPTX
Euler Method
PPTX
Simpson's Three-Eighth Method
PPTX
Trapezoidal Rule
PPTX
Simpson One-Third
PPTX
Forward & Backward Differenece Table
PPTX
Bisection Method
PPTX
Power Method
PPTX
Eigen Show
PPTX
Inverse Power Method
PPTX
Convergence Analysis
PPTX
MARLAB codes for Gauss Seidel
PPTX
MATLAB Codes for Jacobi method
PPTX
L-U Decomposition
PPTX
Gauss Elimination (without pivot).pptx
PPTX
Gauss Elimination (With Partial Pivot)
PPTX
Error analysis
PPTX
Flow of control
PPTX
Matlab Files
Finite Difference Method
Runge Kutta Method
Euler Method
Simpson's Three-Eighth Method
Trapezoidal Rule
Simpson One-Third
Forward & Backward Differenece Table
Bisection Method
Power Method
Eigen Show
Inverse Power Method
Convergence Analysis
MARLAB codes for Gauss Seidel
MATLAB Codes for Jacobi method
L-U Decomposition
Gauss Elimination (without pivot).pptx
Gauss Elimination (With Partial Pivot)
Error analysis
Flow of control
Matlab Files
Ad

Recently uploaded (20)

PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
annual-report-2024-2025 original latest.
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PPTX
Introduction to machine learning and Linear Models
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PDF
Mega Projects Data Mega Projects Data
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPT
Reliability_Chapter_ presentation 1221.5784
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Lecture1 pattern recognition............
PPTX
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
IBA_Chapter_11_Slides_Final_Accessible.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
annual-report-2024-2025 original latest.
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Supervised vs unsupervised machine learning algorithms
IB Computer Science - Internal Assessment.pptx
Introduction to Knowledge Engineering Part 1
Qualitative Qantitative and Mixed Methods.pptx
Introduction to machine learning and Linear Models
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Mega Projects Data Mega Projects Data
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Reliability_Chapter_ presentation 1221.5784
Galatica Smart Energy Infrastructure Startup Pitch Deck
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Lecture1 pattern recognition............
iec ppt-1 pptx icmr ppt on rehabilitation.pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
168300704-gasification-ppt.pdfhghhhsjsjhsuxush

Fixed Point Interation

  • 1. PRACTICAL Name- Saloni Singhal M.Sc. (Statistics) II-Sem. Roll No: 2046398 Course- MATH-409 L Numerical Analysis Lab Submitted To: Dr. S.C. Pandey
  • 2. OBJECTIVE 1. Create an M-file to implement Fixed Point Iteration method. 1. Calculate the error and convergence of this method.
  • 3. Theory Fixed point iteration method is based on the principle of finding a sequence {xn}, each element of which successively approximates a real root of equation in [a,b]. We re-write f(x)=0 as x=Φ(x).Thus, a root α of the given equation satisfies α= Φ(x) Therefore, the point remains fixed under the mapping Φ and so a root of the equation is a fixed point of Φ(x) which is called the iteration function. Iterations are generated by the formula xn+1 = Φ(x) The sequence {xn} of iterations may not converge to a limit. If it converges, then it converges to α and the number of iterations required depend upon the desired degree of accuracy of the root α.
  • 4. Convergence The presentation of f(x)=0 as x= Φ(x) is not unique, therefore, the convergence of {xn } depends upon the nature of Φ(x). Using Lagrange Mean Value Theorem: We conclude the result:
  • 5. Script File x0=1; %initial approx MaxIter=20; tolX=1e-8; %iteration Method x=x0; xold=x0; minx=x0; maxx=x0; for i =1:MaxIter x=sqrt(2-log(x)); %function if x<minx minx=x; end if x>maxx maxx=x; end err(i)=abs(x-xold); xold=x; if(err(i)<tolX) break end %display error in iterations disp(['Error in iteration ',num2str(i),' is = ',num2str(err(i),'%e')]) end plot(x,x,'*') hold on X=linspace(minx,maxx,51); Y=sqrt(2-log(X)); plot(X,Y)
  • 7. Plot of the iterated values and the final fixed point This shows the final iterated value =1.3141 satisfying x=Φ(x)
  • 8. Log Plot of error in i and i+1 iterations Codes:
  • 9. Conclusion • For the given equation f(x)=x2+log(x)-2=0 • the initial approximated root is x0=1 and f’(1)=0.35<1 so convergence is assured. • The rate of convergence of err is 0.3099 • Since the rate of convergence is 1(calculated from log plot), so the method is linearly convergent. • The real root is x =1.3141 • And as f(1.3141) is in accepted region as tolx =1e-8