SlideShare a Scribd company logo
3
Most read
9
Most read
11
Most read
Numerical and Statistical Methods
Vadodara Institute of Engineering
Kotambi, waghodia
Created by:
Ruchi Maurya
Roots of equation by Numerical methods:
• Bisection method
• Regula-Falsi method
• Secant method
Bisection method:
• Based on the fact that the function will change signs as it passes
thru the root.
 f(a)*f(b) < 0
• Once we have a root bracketed, we simply evaluate the mid-
point and halve the interval.
• C=(a+b)/2
Bisection method:
a bc
f(a)>0
f(b)<0
f(c)>0
c ba
a = c
f(a)>0
f(b)<0
f(c)<0
Bisection method:
• C=(a+b)/2
b
ca
b = c
f(b)<0
Algorithm:
1) Start
2) Read values of x0, x1 and e
*Here x0 and x1 are the two initial guesses
e is the degree of accuracy or the absolute error i.e. the
stopping criteria*
3) Computer function values f(x0) and f(x1)
4) Check whether the product of f(x0) and f(x1) is negative
or
not.
If it is positive take another initial guesses.
If it is negative then goto step 5.
5) Determine:
x = [x0+ x1] / 2
6) Check whether the product of f(x1) and f(x) is
negative or not.
If it is negative, then assign x0 = x;
If it is positive, assign x1 = x;
7) Check whether the value of f(x) is greater than
0.00001 or not.
If yes, goto step 5.
If no, goto step 8.
*Here the value 0.00001 is the desired degree of
accuracy, and hence the stopping criteria.
8) Display the root as x.
9) Stop
Example:
• Based on the fact that the function will change signs as it passes
thru the root.
 f(a)*f(b) < 0
• Same as Bisection method, only the equation of finding value of ‘c’
is different.
Regula-Falsi method:
)()(
)(.)(.
C
afbf
afbbfa



Regula-Falsi method:
a
bcc1
a
b
Algorithm:
1) Start
2) Read values of x0, x1 and e
*Here x0 and x1 are the two initial guesses
e is the degree of accuracy or the absolute error i.e. the
stopping criteria*
3) Computer function values f(x0) and f(x1)
4) Check whether the product of f(x0) and f(x1) is negative
or
not.
If it is positive take another initial guesses.
If it is negative then goto step 5.
5) Determine:
x = [x0*f(x1) – x1*f(x0)] / (f(x1) – f(x0))
6) Check whether the product of f(x1) and f(x) is
negative or not.
If it is negative, then assign x0 = x;
If it is positive, assign x1 = x;
7) Check whether the value of f(x) is greater than
0.00001 or not.
If yes, goto step 5.
If no, goto step 8.
*Here the value 0.00001 is the desired degree of
accuracy, and hence the stopping criteria.
8) Display the root as x.
9) Stop
Example:
Find the root of x * cos[(x)/ (x-2)]=0
Iteration
No.
a b c f(a) * f(c)
1 1 1.5 1.133 0.159 (+ve)
2 1.133 1.5 1.194 0.032 (+ve)
3 1.194 1.5 1.214 3.192E-3 (+ve)
4 1.214 1.5 1.22 2.586E-4(+ve)
5 1.22 1.5 1.222 1.646E-5 (+ve)
6 1.222 1.5 1.222 3.811E-9(+ve)
Secant method:
• This method is an improvement over the method of false position
as it doesn’t require the condition
 f(a)*f(b) < 0
• It is same as Regula-falsi method, the equation of finding value of
‘c’ is ,
)()(
)(.)(.
C
afbf
afbbfa



Secant method:
a b
c c1
Algorithm:
1) Start
2) Read values of x0, x1 and e
*Here x0 and x1 are the two initial guesses
e is the degree of accuracy or the absolute error i.e. the
stopping criteria*
3) Computer function values f(x0) and f(x1)
4) Check whether the product of f(x0) and f(x1) is negative
or
not.
If it is positive take another initial guesses.
If it is negative then goto step 5.
5) Determine:
x = [x0*f(x1) – x1*f(x0)] / (f(x1) – f(x0))
6) No need to check any condition,
Just assign x0 = x1;
assign x1 = x;
7) Check whether the value of f(x) is greater than
0.00001 or not.
If yes, goto step 5.
If no, goto step 8.
*Here the value 0.00001 is the desired degree of
accuracy, and hence the stopping criteria.
8) Display the root as x.
9) Stop
Example:
Thank You..!!!

More Related Content

PPTX
Bisection method
PPTX
Bisection method
PPTX
Numerical methods
PPTX
PPTX
Runge-Kutta methods with examples
PPTX
Bisection method
PPTX
Numerical differentiation and integration
PPTX
Numerical differentiation
Bisection method
Bisection method
Numerical methods
Runge-Kutta methods with examples
Bisection method
Numerical differentiation and integration
Numerical differentiation

What's hot (20)

PPTX
Newton Forward Difference Interpolation Method
PPTX
Regula falsi method
PPT
Numerical differentiation integration
PDF
Numerical Differentiations Solved examples
PPTX
INTERPOLATION
PPT
Laplace transforms
PPTX
Error Finding in Numerical method
PPTX
Curve fitting
PPTX
A brief introduction to finite difference method
PPTX
Engineering Numerical Analysis Lecture-1
PPTX
Numerical analysis (Bisectional method) application
PPTX
Matrix Algebra seminar ppt
PDF
Bender schmidt method
PPT
numerical methods
PPTX
the fourier series
PPTX
linear equation and gaussian elimination
PPT
Applications of numerical methods
PPT
Roll's theorem
PDF
Bisection method
PPTX
Newton Forward Difference Interpolation Method
Regula falsi method
Numerical differentiation integration
Numerical Differentiations Solved examples
INTERPOLATION
Laplace transforms
Error Finding in Numerical method
Curve fitting
A brief introduction to finite difference method
Engineering Numerical Analysis Lecture-1
Numerical analysis (Bisectional method) application
Matrix Algebra seminar ppt
Bender schmidt method
numerical methods
the fourier series
linear equation and gaussian elimination
Applications of numerical methods
Roll's theorem
Bisection method
Ad

Similar to Nams- Roots of equations by numerical methods (20)

PPT
Raices de ecuaciones
PPT
Raices de ecuaciones
PPTX
PPTX
ELEN-30073_Numerical-Methods-and-Analysis_SY2324_Updated-1.3_10022024 (2).pptx
PDF
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
PPTX
bisectionmethod-130831052031-phpapp02.pptx
PDF
F0333034038
PPTX
Numerical and computational methods.pptx
PDF
Problemas resueltos de funciones lineales ccesa007
PDF
Numerical method for solving non linear equations
PPT
3.OPERATORS_MB.ppt .
PPTX
MuVM: Higher Order Mutation Analysis Virtual Machine for C
PPTX
Bisection & Regual falsi methods
PPTX
Line Drawing Algorithms - Computer Graphics - Notes
PDF
cgrchapter2version-1-200729063505 (1).pdf
PPTX
INTRODUCTION TO MATLAB presentation.pptx
PDF
determinants-160504230830_repaired.pdf
PDF
determinants-160504230830.pdf
PPT
ch04-conditional-execution.ppt
PDF
NSC #2 - D2 06 - Richard Johnson - SAGEly Advice
Raices de ecuaciones
Raices de ecuaciones
ELEN-30073_Numerical-Methods-and-Analysis_SY2324_Updated-1.3_10022024 (2).pptx
Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)
bisectionmethod-130831052031-phpapp02.pptx
F0333034038
Numerical and computational methods.pptx
Problemas resueltos de funciones lineales ccesa007
Numerical method for solving non linear equations
3.OPERATORS_MB.ppt .
MuVM: Higher Order Mutation Analysis Virtual Machine for C
Bisection & Regual falsi methods
Line Drawing Algorithms - Computer Graphics - Notes
cgrchapter2version-1-200729063505 (1).pdf
INTRODUCTION TO MATLAB presentation.pptx
determinants-160504230830_repaired.pdf
determinants-160504230830.pdf
ch04-conditional-execution.ppt
NSC #2 - D2 06 - Richard Johnson - SAGEly Advice
Ad

More from Ruchi Maurya (7)

PPTX
Computer graphics - bresenham line drawing algorithm
PPTX
SHA- Secure hashing algorithm
PDF
Java- Datagram Socket class & Datagram Packet class
PPTX
Types of Addressing modes- COA
PPTX
Social networking
PPTX
Random access memory
PPTX
open system interconnection
Computer graphics - bresenham line drawing algorithm
SHA- Secure hashing algorithm
Java- Datagram Socket class & Datagram Packet class
Types of Addressing modes- COA
Social networking
Random access memory
open system interconnection

Recently uploaded (20)

PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
DOCX
573137875-Attendance-Management-System-original
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
737-MAX_SRG.pdf student reference guides
PPT
Total quality management ppt for engineering students
PPTX
Current and future trends in Computer Vision.pptx
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
R24 SURVEYING LAB MANUAL for civil enggi
Safety Seminar civil to be ensured for safe working.
CYBER-CRIMES AND SECURITY A guide to understanding
Automation-in-Manufacturing-Chapter-Introduction.pdf
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
573137875-Attendance-Management-System-original
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
UNIT 4 Total Quality Management .pptx
Fundamentals of safety and accident prevention -final (1).pptx
737-MAX_SRG.pdf student reference guides
Total quality management ppt for engineering students
Current and future trends in Computer Vision.pptx
III.4.1.2_The_Space_Environment.p pdffdf
Foundation to blockchain - A guide to Blockchain Tech
Level 2 – IBM Data and AI Fundamentals (1)_v1.1.PDF

Nams- Roots of equations by numerical methods

  • 1. Numerical and Statistical Methods Vadodara Institute of Engineering Kotambi, waghodia Created by: Ruchi Maurya
  • 2. Roots of equation by Numerical methods: • Bisection method • Regula-Falsi method • Secant method
  • 3. Bisection method: • Based on the fact that the function will change signs as it passes thru the root.  f(a)*f(b) < 0 • Once we have a root bracketed, we simply evaluate the mid- point and halve the interval. • C=(a+b)/2
  • 4. Bisection method: a bc f(a)>0 f(b)<0 f(c)>0 c ba a = c f(a)>0 f(b)<0 f(c)<0
  • 6. Algorithm: 1) Start 2) Read values of x0, x1 and e *Here x0 and x1 are the two initial guesses e is the degree of accuracy or the absolute error i.e. the stopping criteria* 3) Computer function values f(x0) and f(x1) 4) Check whether the product of f(x0) and f(x1) is negative or not. If it is positive take another initial guesses. If it is negative then goto step 5. 5) Determine: x = [x0+ x1] / 2
  • 7. 6) Check whether the product of f(x1) and f(x) is negative or not. If it is negative, then assign x0 = x; If it is positive, assign x1 = x; 7) Check whether the value of f(x) is greater than 0.00001 or not. If yes, goto step 5. If no, goto step 8. *Here the value 0.00001 is the desired degree of accuracy, and hence the stopping criteria. 8) Display the root as x. 9) Stop
  • 9. • Based on the fact that the function will change signs as it passes thru the root.  f(a)*f(b) < 0 • Same as Bisection method, only the equation of finding value of ‘c’ is different. Regula-Falsi method: )()( )(.)(. C afbf afbbfa   
  • 11. Algorithm: 1) Start 2) Read values of x0, x1 and e *Here x0 and x1 are the two initial guesses e is the degree of accuracy or the absolute error i.e. the stopping criteria* 3) Computer function values f(x0) and f(x1) 4) Check whether the product of f(x0) and f(x1) is negative or not. If it is positive take another initial guesses. If it is negative then goto step 5. 5) Determine: x = [x0*f(x1) – x1*f(x0)] / (f(x1) – f(x0))
  • 12. 6) Check whether the product of f(x1) and f(x) is negative or not. If it is negative, then assign x0 = x; If it is positive, assign x1 = x; 7) Check whether the value of f(x) is greater than 0.00001 or not. If yes, goto step 5. If no, goto step 8. *Here the value 0.00001 is the desired degree of accuracy, and hence the stopping criteria. 8) Display the root as x. 9) Stop
  • 13. Example: Find the root of x * cos[(x)/ (x-2)]=0 Iteration No. a b c f(a) * f(c) 1 1 1.5 1.133 0.159 (+ve) 2 1.133 1.5 1.194 0.032 (+ve) 3 1.194 1.5 1.214 3.192E-3 (+ve) 4 1.214 1.5 1.22 2.586E-4(+ve) 5 1.22 1.5 1.222 1.646E-5 (+ve) 6 1.222 1.5 1.222 3.811E-9(+ve)
  • 14. Secant method: • This method is an improvement over the method of false position as it doesn’t require the condition  f(a)*f(b) < 0 • It is same as Regula-falsi method, the equation of finding value of ‘c’ is , )()( )(.)(. C afbf afbbfa   
  • 16. Algorithm: 1) Start 2) Read values of x0, x1 and e *Here x0 and x1 are the two initial guesses e is the degree of accuracy or the absolute error i.e. the stopping criteria* 3) Computer function values f(x0) and f(x1) 4) Check whether the product of f(x0) and f(x1) is negative or not. If it is positive take another initial guesses. If it is negative then goto step 5. 5) Determine: x = [x0*f(x1) – x1*f(x0)] / (f(x1) – f(x0))
  • 17. 6) No need to check any condition, Just assign x0 = x1; assign x1 = x; 7) Check whether the value of f(x) is greater than 0.00001 or not. If yes, goto step 5. If no, goto step 8. *Here the value 0.00001 is the desired degree of accuracy, and hence the stopping criteria. 8) Display the root as x. 9) Stop