SlideShare a Scribd company logo
Newton–Raphson
Method
MD. ABU BAKAR SIDDIQUE
DEPT. OF INDUSTRIAL & PRODUCTION ENGINEERING
3RD YAER, 6TH SEMESTER
ROLL: 125029
RUET, BANGLADESH.
FACEBOOK: http://bit.ly/2azV80u
1.
Introduction
Let’s start with
the first set of
slides
Introduction
In numerical analysis, Newton's method (also known as the Newton–
Raphson method), named after Isaac Newton and Joseph Raphson,
is a method for finding successively better approximations to the
roots (or zeroes) of a real-valued function.
The method starts with a function f defined over the real numbers x,
the function's derivative f', and an initial guess x0 for a root of the
function f. If the function satisfies the assumptions made in the
derivation of the formula and the initial guess is close, then a better
approximation x1 is
2.
Program
Let’s start with
the first set of
slides
#include<stdio.h>
#include<math.h>
float f(float x)
{
return x*x*x – 2*x - 5;
}
float df (float x)
{
return 3*x*x - 2;
}
void main()
{
int itr, maxmitr;
float h, x0, x1, allerr;
printf("nEnter x0, allowed error and maximum iterationsn");
scanf("%f %f %d", &x0, &allerr, &maxmitr);
for (itr=1; itr<=maxmitr; itr++)
{
h=f(x0)/df(x0);
x1=x0-h;
printf(" At Iteration no. %3d, x = %9.6fn", itr, x1);
if (fabs(h) < allerr)
{
printf("After %3d iterations, root = %8.6fn", itr, x1);
return 0;
}
x0=x1;
}
printf(" The required solution does not converge or iterations are
insufficientn");
return 1;
}
3.
I/O of The Program
4.
Applications
Let’s start with
the first set of
slides
 Newton's method can be used to find a
minimum or maximum of a function.
 Finding the reciprocal of a amounts to finding
the root of the function.
 Solving transcendental equations.
Applications

More Related Content

What's hot

Fourier series
Fourier seriesFourier series
Fourier series
Shiv Prasad Gupta
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
Tausif Shahanshah
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
VISHAL DONGA
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
Meenakshisundaram N
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPT
Panchal Anand
 
The newton raphson method
The newton raphson methodThe newton raphson method
The newton raphson method
Tarun Gehlot
 
Inner product spaces
Inner product spacesInner product spaces
Inner product spaces
EasyStudy3
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
Sunny Chauhan
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
Jas Singh Bhasin
 
Iterative methods
Iterative methodsIterative methods
Iterative methods
Ketan Nayak
 
Eigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringEigen values and eigen vectors engineering
Eigen values and eigen vectors engineering
shubham211
 
Lu decomposition
Lu decompositionLu decomposition
Lu decompositiongilandio
 
lagrange interpolation
lagrange interpolationlagrange interpolation
lagrange interpolation
ayush raj
 
Initial Value Problems
Initial Value ProblemsInitial Value Problems
Initial Value Problems
Mohammad Tawfik
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
Karnav Rana
 
Aitken’s method
Aitken’s methodAitken’s method
Aitken’s method
Ma. Annie Derilo
 
algebraic&transdential equations
algebraic&transdential equationsalgebraic&transdential equations
algebraic&transdential equations8laddu8
 
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Jayanshu Gundaniya
 

What's hot (20)

Fourier series
Fourier seriesFourier series
Fourier series
 
Presentation on Numerical Integration
Presentation on Numerical IntegrationPresentation on Numerical Integration
Presentation on Numerical Integration
 
Newton divided difference interpolation
Newton divided difference interpolationNewton divided difference interpolation
Newton divided difference interpolation
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
 
Numerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPTNumerical solution of ordinary differential equations GTU CVNM PPT
Numerical solution of ordinary differential equations GTU CVNM PPT
 
The newton raphson method
The newton raphson methodThe newton raphson method
The newton raphson method
 
Inner product spaces
Inner product spacesInner product spaces
Inner product spaces
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
Newton’s Divided Difference Formula
Newton’s Divided Difference FormulaNewton’s Divided Difference Formula
Newton’s Divided Difference Formula
 
Iterative methods
Iterative methodsIterative methods
Iterative methods
 
Eigen values and eigen vectors engineering
Eigen values and eigen vectors engineeringEigen values and eigen vectors engineering
Eigen values and eigen vectors engineering
 
Lu decomposition
Lu decompositionLu decomposition
Lu decomposition
 
lagrange interpolation
lagrange interpolationlagrange interpolation
lagrange interpolation
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1
 
Initial Value Problems
Initial Value ProblemsInitial Value Problems
Initial Value Problems
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Aitken’s method
Aitken’s methodAitken’s method
Aitken’s method
 
algebraic&transdential equations
algebraic&transdential equationsalgebraic&transdential equations
algebraic&transdential equations
 
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
Engineering Mathematics - Total derivatives, chain rule and derivative of imp...
 

Viewers also liked

Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysisdivyanshuprakashrock
 
Newton raphson
Newton raphsonNewton raphson
Newton raphsonbaxter89
 
Newton Raphson Method
Newton Raphson MethodNewton Raphson Method
Newton Raphson MethodTayyaba Abbas
 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationtutulk
 
Assignment on Numerical Method C Code
Assignment on Numerical Method C CodeAssignment on Numerical Method C Code
Assignment on Numerical Method C Code
Syed Ahmed Zaki
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysisVishal Singh
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsMileacre
 
Use of Statistics in real life
Use of Statistics in real lifeUse of Statistics in real life
Use of Statistics in real life
Engr Habib ur Rehman
 
Practical use of mean mode median
Practical use of mean mode median Practical use of mean mode median
Practical use of mean mode median
Federation of Industries
 
Measure of Central Tendency
Measure of Central TendencyMeasure of Central Tendency
Measure of Central Tendency
Mysore University Library
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi methodandrushow
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton RaphsonAisu
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
Riyandika Jastin
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
Divya Bhatia
 
interpolation
interpolationinterpolation
interpolation8laddu8
 
Applications of statistics in daily life
Applications of statistics in daily lifeApplications of statistics in daily life
Applications of statistics in daily lifeminah habib
 
Numerical Methods 3
Numerical Methods 3Numerical Methods 3
Numerical Methods 3
Dr. Nirav Vyas
 
Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rule
zahid6
 

Viewers also liked (20)

newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
Newton Raphson method for load flow analysis
Newton Raphson method for load flow analysisNewton Raphson method for load flow analysis
Newton Raphson method for load flow analysis
 
Newton raphson
Newton raphsonNewton raphson
Newton raphson
 
Newton Raphson Method
Newton Raphson MethodNewton Raphson Method
Newton Raphson Method
 
Calculus 08 techniques_of_integration
Calculus 08 techniques_of_integrationCalculus 08 techniques_of_integration
Calculus 08 techniques_of_integration
 
Assignment on Numerical Method C Code
Assignment on Numerical Method C CodeAssignment on Numerical Method C Code
Assignment on Numerical Method C Code
 
Numerical analysis
Numerical analysisNumerical analysis
Numerical analysis
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 
Use of Statistics in real life
Use of Statistics in real lifeUse of Statistics in real life
Use of Statistics in real life
 
Practical use of mean mode median
Practical use of mean mode median Practical use of mean mode median
Practical use of mean mode median
 
Role of statistics in real life , business & good governance
Role of statistics in real life , business & good governanceRole of statistics in real life , business & good governance
Role of statistics in real life , business & good governance
 
Measure of Central Tendency
Measure of Central TendencyMeasure of Central Tendency
Measure of Central Tendency
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi method
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
 
interpolation
interpolationinterpolation
interpolation
 
Applications of statistics in daily life
Applications of statistics in daily lifeApplications of statistics in daily life
Applications of statistics in daily life
 
Numerical Methods 3
Numerical Methods 3Numerical Methods 3
Numerical Methods 3
 
Simpson’s one third and weddle's rule
Simpson’s one third and weddle's ruleSimpson’s one third and weddle's rule
Simpson’s one third and weddle's rule
 

Similar to Newton Raphson Method Using C Programming

GROUP-4 PRESENTATION ON NR-METHOD.pptx
GROUP-4   PRESENTATION ON NR-METHOD.pptxGROUP-4   PRESENTATION ON NR-METHOD.pptx
GROUP-4 PRESENTATION ON NR-METHOD.pptx
nirnaybanik3384
 
The International Journal of Engineering and Science (The IJES)
 The International Journal of Engineering and Science (The IJES) The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
theijes
 
B02110105012
B02110105012B02110105012
B02110105012theijes
 
Newton raphsonmethod presentation
Newton raphsonmethod presentationNewton raphsonmethod presentation
Newton raphsonmethod presentation
Abdullah Moin
 
Newton Raphson Method.pptx
Newton Raphson Method.pptxNewton Raphson Method.pptx
Newton Raphson Method.pptx
malothashweetha
 
Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...
Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...
Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...
RaihanHossain49
 
Newton Raphson iterative Method
Newton Raphson iterative MethodNewton Raphson iterative Method
Newton Raphson iterative Method
Isaac Yowetu
 
Mah
MahMah
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with c
Yagya Dev Bhardwaj
 
OPERATIONS RESEARCH
OPERATIONS RESEARCHOPERATIONS RESEARCH
OPERATIONS RESEARCH
Makaha Rutendo
 
Secant method
Secant methodSecant method
Secant method
Zahra Saman
 
NEWTON RPHSON METHOD WITH CALCULATOR TUTORIAL
NEWTON RPHSON METHOD WITH CALCULATOR TUTORIALNEWTON RPHSON METHOD WITH CALCULATOR TUTORIAL
NEWTON RPHSON METHOD WITH CALCULATOR TUTORIAL
Vaitheeswaran Gnanaraj
 
AI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdfAI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdf
JNTUK KAKINADA
 
5e model Newton Method for Nonlinear Equations.pptx
5e model Newton Method for Nonlinear Equations.pptx5e model Newton Method for Nonlinear Equations.pptx
5e model Newton Method for Nonlinear Equations.pptx
WraArirmiwni
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
mathsjournal
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
mathsjournal
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
mathsjournal
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
fenil patel
 

Similar to Newton Raphson Method Using C Programming (20)

Newton
NewtonNewton
Newton
 
GROUP-4 PRESENTATION ON NR-METHOD.pptx
GROUP-4   PRESENTATION ON NR-METHOD.pptxGROUP-4   PRESENTATION ON NR-METHOD.pptx
GROUP-4 PRESENTATION ON NR-METHOD.pptx
 
The International Journal of Engineering and Science (The IJES)
 The International Journal of Engineering and Science (The IJES) The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
B02110105012
B02110105012B02110105012
B02110105012
 
Newton raphsonmethod presentation
Newton raphsonmethod presentationNewton raphsonmethod presentation
Newton raphsonmethod presentation
 
Newton Raphson Method.pptx
Newton Raphson Method.pptxNewton Raphson Method.pptx
Newton Raphson Method.pptx
 
Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...
Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...
Exploring_the_Fundamentals_of_Numerical_Analysis_An_Overview_of_Newton_Raphso...
 
Newton Raphson iterative Method
Newton Raphson iterative MethodNewton Raphson iterative Method
Newton Raphson iterative Method
 
Mah
MahMah
Mah
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with c
 
OPERATIONS RESEARCH
OPERATIONS RESEARCHOPERATIONS RESEARCH
OPERATIONS RESEARCH
 
Secant method
Secant methodSecant method
Secant method
 
Calc 3.8
Calc 3.8Calc 3.8
Calc 3.8
 
NEWTON RPHSON METHOD WITH CALCULATOR TUTORIAL
NEWTON RPHSON METHOD WITH CALCULATOR TUTORIALNEWTON RPHSON METHOD WITH CALCULATOR TUTORIAL
NEWTON RPHSON METHOD WITH CALCULATOR TUTORIAL
 
AI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdfAI R16 - UNIT-3.pdf
AI R16 - UNIT-3.pdf
 
5e model Newton Method for Nonlinear Equations.pptx
5e model Newton Method for Nonlinear Equations.pptx5e model Newton Method for Nonlinear Equations.pptx
5e model Newton Method for Nonlinear Equations.pptx
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
Fractional Newton-Raphson Method and Some Variants for the Solution of Nonlin...
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
 

Recently uploaded

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

Newton Raphson Method Using C Programming

  • 1. Newton–Raphson Method MD. ABU BAKAR SIDDIQUE DEPT. OF INDUSTRIAL & PRODUCTION ENGINEERING 3RD YAER, 6TH SEMESTER ROLL: 125029 RUET, BANGLADESH. FACEBOOK: http://bit.ly/2azV80u
  • 3. Introduction In numerical analysis, Newton's method (also known as the Newton– Raphson method), named after Isaac Newton and Joseph Raphson, is a method for finding successively better approximations to the roots (or zeroes) of a real-valued function. The method starts with a function f defined over the real numbers x, the function's derivative f', and an initial guess x0 for a root of the function f. If the function satisfies the assumptions made in the derivation of the formula and the initial guess is close, then a better approximation x1 is
  • 4. 2. Program Let’s start with the first set of slides
  • 5. #include<stdio.h> #include<math.h> float f(float x) { return x*x*x – 2*x - 5; } float df (float x) { return 3*x*x - 2; } void main() { int itr, maxmitr; float h, x0, x1, allerr; printf("nEnter x0, allowed error and maximum iterationsn"); scanf("%f %f %d", &x0, &allerr, &maxmitr); for (itr=1; itr<=maxmitr; itr++)
  • 6. { h=f(x0)/df(x0); x1=x0-h; printf(" At Iteration no. %3d, x = %9.6fn", itr, x1); if (fabs(h) < allerr) { printf("After %3d iterations, root = %8.6fn", itr, x1); return 0; } x0=x1; } printf(" The required solution does not converge or iterations are insufficientn"); return 1; }
  • 7. 3. I/O of The Program
  • 8.
  • 10.  Newton's method can be used to find a minimum or maximum of a function.  Finding the reciprocal of a amounts to finding the root of the function.  Solving transcendental equations. Applications