SlideShare a Scribd company logo
P R E P A R E D B Y
M D . M U J A H I D I S L A M
M D . R A F I Q U L I S L A M
K H A Z A F A H M I D A A K T E R
Let the given equation be f(x) = 0 and the value of x to
be determined. By using the Iteration method you can
find the roots of the equation. To find the root of the
equation first we have to write equation like below
x = pi(x)
Let x=x0 be an initial approximation of the required root
α then the first approximation x1 is given by x1 = pi(x0).
Similarly for second, third and so on. Approximation
x2 = pi(x1)
x3 = pi(x2)
x4 = pi(x3)
xn = pi(xn-1)
 First we take a initial value.
 Then determine function value by using initial value.
 Again we find the function value using function
previous value until current value & previous value
different is 0.0000001 .
 When we reached our expected position then we
surely will get root .
Consider the quadratic equation
2x2-4x+1=0
=>x=(1/2)x2+(1/4)
=>xn+1=(1/2)xn
2+(1/4)
How to Determine the root of this equation by
iterative method?
Solution are given bellow…………..
Let , x0=1 .Now from the equation we can get several
value using this method . Those value are given
bellow by using a table .
So x1=(1/2)*1*1+(1/4)
0.50+0.25
=0.75
Now determine current value by using previous
values again and again .The process are given bellow.
n Xn
1 1.0
2 0.75
.
.
.
.
.
.
.
.
13 0.292894
14 0.292893
15 0.292893
How using this method in our PC?
Answer : We can using this method to determine
root by using different Language such as
Java, C, C++, Pascal etc.
We use a specific Language that is C++ .Those are
presented bellow.
#include<iostream>
#include<cmath>
using namespace std;
double rec(const int,const int,const int,double);
int main()
{
int a,b,c;
cin>>a>>b>>c;
double x1,x2,x3;
cin>>x1;
for(int i=1;;i++){
x2=rec(a,b,c,x1);
if(fabs(x1-x2)<=0.0000001) {cout<<x1;break;}
else{
x1=x2;
}
}
}
double rec(const int a,const int b,const int c,double x){
return (-((a*x*x+c)/b));
}
 We define variable type & define function type .
 Input initial values & passing it through the function
.
 Through the function manipulate it & return values
again & again .Then we check condition again &
again .
Any question?
Please give your valuable Suggestion to improve our
knowledge………
Iterative1

More Related Content

PPTX
Integral calculus
PDF
R - binomial distribution
PPT
2nd Test - Parent Functions
PDF
Lesson 1 Nov 12 09
PPTX
2 1 polynomials
PPT
2.2 Polynomial Function Notes
PDF
Probability mass functions and probability density functions
PPTX
Polynomials
Integral calculus
R - binomial distribution
2nd Test - Parent Functions
Lesson 1 Nov 12 09
2 1 polynomials
2.2 Polynomial Function Notes
Probability mass functions and probability density functions
Polynomials

What's hot (18)

PPT
Wiki Powerpoint
PPTX
Discrete Random Variables And Probability Distributions
PPTX
7.2 abs value function
PDF
Pre-Cal 30S January 16, 2009
PPT
3.1 derivative of a function
PPT
3 2 Polynomial Functions And Their Graphs
PDF
Polynomial Function and Synthetic Division
PPT
Domain Redesigned
PPT
6.3 evaluating-and-graphing-polynomila-functions
PDF
Day 2: Basic Properties of Limits
PPTX
3.2 Derivative as a Function
DOCX
PROBABILITY DISTRIBUTION
PPTX
Quantitative Techniques random variables
PPT
Polynomial functions
PDF
Limits by Factoring
PDF
Day 1: Intuitive Idea and Notation
PDF
Lesson 7: Limits at Infinity
PDF
Day 3 of Free Intuitive Calculus Course: Limits by Factoring
Wiki Powerpoint
Discrete Random Variables And Probability Distributions
7.2 abs value function
Pre-Cal 30S January 16, 2009
3.1 derivative of a function
3 2 Polynomial Functions And Their Graphs
Polynomial Function and Synthetic Division
Domain Redesigned
6.3 evaluating-and-graphing-polynomila-functions
Day 2: Basic Properties of Limits
3.2 Derivative as a Function
PROBABILITY DISTRIBUTION
Quantitative Techniques random variables
Polynomial functions
Limits by Factoring
Day 1: Intuitive Idea and Notation
Lesson 7: Limits at Infinity
Day 3 of Free Intuitive Calculus Course: Limits by Factoring
Ad

Similar to Iterative1 (20)

PPT
Numerical method
PPT
Newton raphson method
PDF
Interpolation techniques - Background and implementation
PDF
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
PDF
Numarical values
PDF
Numarical values highlighted
DOCX
Roots of equations
DOCX
Equations root
PPT
Tips manejo de 1er parcial fula metodos numericos 2010
PDF
Solution of non-linear equations
PDF
Non linearequationsmatlab
PDF
Non linearequationsmatlab
PDF
AJMS_402_22_Reprocess_new.pdf
PDF
Numerical methods presentation 11 iteration method
PDF
Daa chapter7
PPTX
Newton raphsonmethod presentation
PPT
Chapter 3
DOCX
PDF
Chs4
PPTX
polynomial interpolation
Numerical method
Newton raphson method
Interpolation techniques - Background and implementation
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf
Numarical values
Numarical values highlighted
Roots of equations
Equations root
Tips manejo de 1er parcial fula metodos numericos 2010
Solution of non-linear equations
Non linearequationsmatlab
Non linearequationsmatlab
AJMS_402_22_Reprocess_new.pdf
Numerical methods presentation 11 iteration method
Daa chapter7
Newton raphsonmethod presentation
Chapter 3
Chs4
polynomial interpolation
Ad

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
Teaching material agriculture food technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Approach and Philosophy of On baking technology
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Review of recent advances in non-invasive hemoglobin estimation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MYSQL Presentation for SQL database connectivity
Digital-Transformation-Roadmap-for-Companies.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Teaching material agriculture food technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Approach and Philosophy of On baking technology
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx

Iterative1

  • 1. P R E P A R E D B Y M D . M U J A H I D I S L A M M D . R A F I Q U L I S L A M K H A Z A F A H M I D A A K T E R
  • 2. Let the given equation be f(x) = 0 and the value of x to be determined. By using the Iteration method you can find the roots of the equation. To find the root of the equation first we have to write equation like below x = pi(x) Let x=x0 be an initial approximation of the required root α then the first approximation x1 is given by x1 = pi(x0). Similarly for second, third and so on. Approximation x2 = pi(x1) x3 = pi(x2) x4 = pi(x3) xn = pi(xn-1)
  • 3.  First we take a initial value.  Then determine function value by using initial value.  Again we find the function value using function previous value until current value & previous value different is 0.0000001 .  When we reached our expected position then we surely will get root .
  • 4. Consider the quadratic equation 2x2-4x+1=0 =>x=(1/2)x2+(1/4) =>xn+1=(1/2)xn 2+(1/4) How to Determine the root of this equation by iterative method? Solution are given bellow…………..
  • 5. Let , x0=1 .Now from the equation we can get several value using this method . Those value are given bellow by using a table . So x1=(1/2)*1*1+(1/4) 0.50+0.25 =0.75 Now determine current value by using previous values again and again .The process are given bellow.
  • 6. n Xn 1 1.0 2 0.75 . . . . . . . . 13 0.292894 14 0.292893 15 0.292893
  • 7. How using this method in our PC? Answer : We can using this method to determine root by using different Language such as Java, C, C++, Pascal etc. We use a specific Language that is C++ .Those are presented bellow.
  • 8. #include<iostream> #include<cmath> using namespace std; double rec(const int,const int,const int,double); int main() { int a,b,c; cin>>a>>b>>c; double x1,x2,x3; cin>>x1; for(int i=1;;i++){ x2=rec(a,b,c,x1); if(fabs(x1-x2)<=0.0000001) {cout<<x1;break;} else{ x1=x2; } } } double rec(const int a,const int b,const int c,double x){ return (-((a*x*x+c)/b)); }
  • 9.  We define variable type & define function type .  Input initial values & passing it through the function .  Through the function manipulate it & return values again & again .Then we check condition again & again .
  • 10. Any question? Please give your valuable Suggestion to improve our knowledge………