SlideShare a Scribd company logo
Root Finding Methods in Numerical Analysis
Root Finding Methods in Numerical Analysis
clear;clc;
%ff='x^3-2*x-5';
%ff='cos(x)-x*exp(x)'
%ff='x*log10(x)-1.2'
ff='x^4-32'
a=2;b=3;
% Method of False Position or Regula False Method
f=inline(ff);k=1;i=1;x=[];
while i<10
c=a-(b-a)*f(a)/(f(b)-f(a));d=c;a1=a;b1=b;
if f(a)*f(c)<0
b=c;
else
a=c;
end
x=[x;i a1 f(a1) b1 f(b1) d f(d)];
i=i+1;
end
fprintf('%gt %1.5ft %1.5ft %1.5ft %1.5ft %1.5ft %1.5ftn',x')
fprintf('Approximate solution of %s = 0 is %1.5fn',ff,d)
FALSE POSITION METHOD
False Position Method
FALSE POSITION METHOD
function root = newtonRaphson(func, dfunc, x0, tol, maxIter)
% func: function handle of f(x)
% dfunc: derivative of f(x) (function handle)
% x0: initial guess
% tol: tolerance for stopping criterion
% maxIter: maximum number of iterations
end
Complete function is attached herewith this link newtonRaphson.m
NEWTON RAPHSON’S METHOD
NEWTON RAPHSON’S METHOD
NEWTON RAPHSON’S METHOD
nrm.m
NEWTON RAPHSON’S METHOD
BISECTION METHOD
Bisection Method
Thank you so much

More Related Content

PDF
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
DOC
Tarea De Scilab By Sebastian Vasquez
PDF
FAIQ MANUAL.pdf
DOCX
Trabajo Scilab
PDF
Solutions_Manual_to_accompany_Applied_Nu.pdf
DOC
DOCX
MATLABAssignment 2Bracketing (Multiple Roots) (4)Bisection .docx
NUMERICAL METHODS WITH MATLAB : bisection,mueller's,newton-raphson,false poin...
Tarea De Scilab By Sebastian Vasquez
FAIQ MANUAL.pdf
Trabajo Scilab
Solutions_Manual_to_accompany_Applied_Nu.pdf
MATLABAssignment 2Bracketing (Multiple Roots) (4)Bisection .docx

Similar to Root Finding Methods in Numerical Analysis (14)

PDF
Assignment on Numerical Method C Code
DOCX
Martha
PDF
ข้อสอบคณิตศาสตร์
PDF
7 วิชา คณิต the brain
PDF
PDF
The Ring programming language version 1.5.4 book - Part 57 of 185
PDF
Key pat1 1-53
PDF
The Ring programming language version 1.5.1 book - Part 55 of 180
DOCX
Taller De Scilab
PDF
C SLIDES PREPARED BY M V B REDDY
PDF
The Ring programming language version 1.5.4 book - Part 56 of 185
PDF
System dynamics 3rd edition palm solutions manual
PDF
The Ring programming language version 1.8 book - Part 63 of 202
Assignment on Numerical Method C Code
Martha
ข้อสอบคณิตศาสตร์
7 วิชา คณิต the brain
The Ring programming language version 1.5.4 book - Part 57 of 185
Key pat1 1-53
The Ring programming language version 1.5.1 book - Part 55 of 180
Taller De Scilab
C SLIDES PREPARED BY M V B REDDY
The Ring programming language version 1.5.4 book - Part 56 of 185
System dynamics 3rd edition palm solutions manual
The Ring programming language version 1.8 book - Part 63 of 202
Ad

More from Sufi Yasir Raza (6)

PPTX
Interactive Computation With MATLAB.pptx
PPTX
Introduction to Communication Styles.pptx
PPTX
Variance and Standard Deviation etc.pptx
PPTX
Loops Branches and control flow in MATLAB
PPTX
Creating Functions file in Matrices Laboratory using MATLAB
PPTX
Better-English-Grammar.pptx
Interactive Computation With MATLAB.pptx
Introduction to Communication Styles.pptx
Variance and Standard Deviation etc.pptx
Loops Branches and control flow in MATLAB
Creating Functions file in Matrices Laboratory using MATLAB
Better-English-Grammar.pptx
Ad

Recently uploaded (20)

PDF
Basic Mud Logging Guide for educational purpose
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
GDM (1) (1).pptx small presentation for students
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Pre independence Education in Inndia.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Cell Types and Its function , kingdom of life
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Cell Structure & Organelles in detailed.
Basic Mud Logging Guide for educational purpose
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Final Presentation General Medicine 03-08-2024.pptx
human mycosis Human fungal infections are called human mycosis..pptx
TR - Agricultural Crops Production NC III.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
GDM (1) (1).pptx small presentation for students
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
RMMM.pdf make it easy to upload and study
Pre independence Education in Inndia.pdf
Computing-Curriculum for Schools in Ghana
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Cell Types and Its function , kingdom of life
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Supply Chain Operations Speaking Notes -ICLT Program
Microbial disease of the cardiovascular and lymphatic systems
Cell Structure & Organelles in detailed.

Root Finding Methods in Numerical Analysis