SlideShare a Scribd company logo
2014
Numerical Method Analysis
Solution of Algebraic and Transcendental Equations
Minhas Kamal
BSSE0509
2
Solution of Algebraic and
Transcendental Equations
An equation of the type ( ) = is either algebraic or transcendental. These types
of equations can be solved by using two types of methods-
1. Direct Method: This method gives the exact value of all the roots directly in a
finite number of steps.
2. Indirect or Iterative Method: Iterative methods are best suited for computer
programs to solve an equation. It is based on the concept of successive
approximation.
In Iterative Method there are two ways to solve an equation-
i. Bracketing Method: We take two initial points where the root lies in
between them. Example- Bisection Method, False Position Method.
ii. Open End Method: We take one or two initial values where the root may
be any-where. Example- Newton-Raphson Method, Successive Approximation
Method, Secant Method.
Bellow we shall discuss about these methods in detail.
Bisection Method
The Bisection Method is a root-finding method that repeatedly bisects
an interval and then selects a subinterval in which a root must lie for further
processing.
Suppose that the bisection method is used to find a root of the polynomial-
( )	= 	 ³	– 	 	– 	
Now, two numbers a and b have to be found such that f(a) and f(b) have opposite
signs. For the function, a=1 and b=2 satisfy this condition, as-
( )	= 	 ³ − − = − and ( )	= 	 ³ − − = 	
In the first iteration the midpoint is-
3
	 =	( + )/ 	 = 	 . 	
The function value is-
( )	= 	 . ³ − . − 	 =	− . 	
Because f(c) is negative, value of a is replaced with 1.5 and as this continues, the
interval between a and b will become increasingly smaller, converging on the root of
the function. See this happen in the table below.
Iteration a b c f(c)
1 1.00000 2. 00000 1.50000 −0.12500
2 1.50000 2. 00000 1.75000 1.60937
3 1.50000 1.75000 1.62500 0.66601
4 1.50000 1.62500 1.56250 0.25219
5 1.50000 1.56250 1.53125 0.05911
6 1.50000 1.53125 1.51562 −0.03405
7 1.51562 1.53125 1.52343 0.01225
8 1.51562 1.52343 1.51953 −0.01097
9 1.51953 1.52343 1.52148 0.00062
So, we got 1.52148 as a root for the polynomial where ϵ0=0.001.
Here is a function in C that uses this method to solve equations-
/**
* takes two initial values and shortens the distance by both side
**/
double BisectionMethod(){
double root=0;
double a=1, b=3;
double c=0, fc=0;
int loopCounter=0;
if(f(a)*f(b) < 0){
while(1){
loopCounter++;
c=(a+b)/2;
fc=f(c);
4
if(fc<0.00001 && fc>-0.00001){
root=c;
break;
}
if((f(a))*(fc) < 0){
b=c;
}else{
a=c;
}
}
}
printf("It took %d loops.n", loopCounter);
return root;
}
False Position Method
It is a method that ends up with a new root estimate after every repetition and
gradually approaches toward more precise solution. The method uses this equation
for finding estimated root-
	 =
∗ ( )–	 ∗ ( )
( )–	 ( )
	
Let’s take the previous function,
( )	= 	 ³	– 	 	– 	 	
For, a=1 and b=2, f(a) and f(b) have opposite signs. So in the first iteration-
c = [1*4 – 2*(-2) ] / [4 – (-2)] = 1.3333
The function is-
( )	=		 − .
5
So we get the following table-
Iteration c f(c)
1 1.3333 −0.9629
2 1.4626 −0.3333
3 1.5040 −0.1018
4 1.5163 −0.0298
5 1.5199 −0.0086
6 1.5209 −0.0025
7 1.5212 −0.0007
So, we got root =1.5212 for the polynomial.
Here is a function in C that uses this method to solve equations-
/**
* takes two initial values and shortens the distance by single side
**/
double FalsePosition(){
double root=0;
double a=1, b=2;
double c=0, fc=0;
int loopCounter=0;
if(f(a)*f(b) < 0){
while(1){
loopCounter++;
c=(a*f(b) - b*f(a)) / (f(b) - f(a));
fc=f(c);
if(fc<0.00001 && fc>-0.00001){
root=c;
break;
}
if((f(a))*(fc) < 0){
b=c;
6
}else{
a=c;
}
}
}
printf("It took %d loops.n", loopCounter);
return root;
}
Newton-Raphson Method
The Newton-Raphson method is simple, fast and the best-known method of finding
roots of a function f (x). It uses one initial point to find the root. It not only uses the
main function but also the derivative of the function.
Derivative of the previous function is-
	′	( )	= 	 ²	 − 	 	
For this function we take x1 =1 and we try to find x2 with this equation-
	 = 	 	–
( )
′( )
And, in every iteration we update the value of x1. So first time we get-
	 = 	
So-
( )	= 	 	
Here is the table-
Iteration X2 f(x2)
1 2.0000 4.0000
2 1.6363 0.7453
3 1.5303 0.0539
4 1.5214 0.0003
7
So, we got root =1.5214.
Here is the code of function-
/**
* uses one initial value and gradually takes that value near to the real one
**/
double NewtonRaphson(){
double root=0;
double x1=1;
double x2=0;
int loopCounter=0;
while(1){
loopCounter++;
x2 = x1 - (f(x1)/f2(x1));
if(f(x2)<0.00001 && f(x2)>-0.00001){
root=x2;
break;
}
x1=x2;
}
printf("It took %d loops.n", loopCounter);
return root;
}
Successive Approximation Method
In this method we first take an initial value, then we try to approximate the root and
examine if it is the real root, if it is not the root we try to approximate the next root
depending on the previous approximation thus the approximation evaluates toward
the root.
Take the previous example. We shall first find ( ) -
Let, ( )	=
8
⟹ ³	 − 	 	 − 	 	 = 	
⟹ ³	 = 	 + 	
⟹ 	 = 	³√( + )
So, ( )	= 	³√( + )
Now for the initial value we take x=1. So then-
( )	= 	 .
We get-
− ( )	=	− .
Here is the table-
Iteration g(x) x-g(x)
1 1.44225 -0.44225
2 1.50989 -0.06764
3 1.51972 -0.00982
4 1.52114 -0.00141
5 1.52134 -0.00020
The method finds out 1.52134 as the root.
The code is bellow-
/**
* uses one initial value and gradually takes that value near to the real one
**/
double FixedPoint(){
double root=0;
double x=1;
9
int loopCounter=0;
while(1){
loopCounter++;
if( (x-g(x)) <0.00001 && (x-g(x)) >-0.00001){
root = x;
break;
}
x=g(x);
}
printf("It took %d loops.n", loopCounter);
return root;
}
Secant Method
The secant method is very similar to the Newton-Raphson method. Newton-
Raphson method needs to determine derivatives of the function at several points,
which is a drawback.
For our equation we take two initial value (the root may/may not be between them)
x0=1, x1=2 and see if x1 is the root-
f(x1) = 4
If not then we try to value x2 where-
2	 =
!" 0∗$( 1)&−" 1∗$( 0)&'
"$( 1)−$( 0)&
= 1.333	
We set x0= x1 & x1= x2 and repeat the process till f(x1)=0.
See this happen in the following table-
10
Iteration X0 X1 f(X1)
1 1.0000 2.0000 4.00000
2 2.0000 1.3333 -0.96296
3 1.3333 1.4626 -0.33333
4 1.4626 1.5311 0.05862
5 1.5311 1.5209 -0.00269
6 1.5209 1.5213 -0.00002
So we get root = 1.5213.
Here is the C coded function-
/**
* uses two initial values & both value approaches to the root
**/
double Secant(){
double root=0;
double x0=1;
double x1=2;
double x2=0;
int loopCounter=0;
while(1){
loopCounter++;
if(f(x1)<0.00001 && f(x1)>-0.00001){
root=x1;
break;
}
x2 = ((x0*f(x1))-(x1*f(x0))) / (f(x1)-f(x0));
x0=x1;
x1=x2;
}
printf("It took %d loops.n", loopCounter);
return root;
}

More Related Content

What's hot

Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with Example
MuhammadUsmanIkram2
 
algebraic&transdential equations
algebraic&transdential equationsalgebraic&transdential equations
algebraic&transdential equations8laddu8
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
Tarun Gehlot
 
Bisection method in maths 4
Bisection method in maths 4Bisection method in maths 4
Bisection method in maths 4
Vaidik Trivedi
 
application of differential equations
application of differential equationsapplication of differential equations
application of differential equations
Venkata.Manish Reddy
 
Rolles theorem
Rolles theoremRolles theorem
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
Mukuldev Khunte
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
Jayesh Ranjan
 
numerical methods
numerical methodsnumerical methods
numerical methods
HaiderParekh1
 
Secant Method
Secant MethodSecant Method
Secant Method
Afraz Khan
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
Dr. Nirav Vyas
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydinesh
Dinesh Kumar
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
Nasima Akhtar
 
Bisection method
Bisection methodBisection method
Bisection method
Isaac Yowetu
 
Numerical solution of system of linear equations
Numerical solution of system of linear equationsNumerical solution of system of linear equations
Numerical solution of system of linear equations
reach2arkaELECTRICAL
 

What's hot (20)

MEAN VALUE THEOREM
MEAN VALUE THEOREMMEAN VALUE THEOREM
MEAN VALUE THEOREM
 
Newton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with ExampleNewton's Backward Interpolation Formula with Example
Newton's Backward Interpolation Formula with Example
 
Gauss jordan
Gauss jordanGauss jordan
Gauss jordan
 
algebraic&transdential equations
algebraic&transdential equationsalgebraic&transdential equations
algebraic&transdential equations
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Bisection method in maths 4
Bisection method in maths 4Bisection method in maths 4
Bisection method in maths 4
 
newton raphson method
newton raphson methodnewton raphson method
newton raphson method
 
application of differential equations
application of differential equationsapplication of differential equations
application of differential equations
 
Rolles theorem
Rolles theoremRolles theorem
Rolles theorem
 
presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve presentation on Euler and Modified Euler method ,and Fitting of curve
presentation on Euler and Modified Euler method ,and Fitting of curve
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
numerical methods
numerical methodsnumerical methods
numerical methods
 
Bisection method
Bisection methodBisection method
Bisection method
 
Secant Method
Secant MethodSecant Method
Secant Method
 
Unit vi
Unit viUnit vi
Unit vi
 
Interpolation with Finite differences
Interpolation with Finite differencesInterpolation with Finite differences
Interpolation with Finite differences
 
Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydinesh
 
Newton Raphson
Newton RaphsonNewton Raphson
Newton Raphson
 
Bisection method
Bisection methodBisection method
Bisection method
 
Numerical solution of system of linear equations
Numerical solution of system of linear equationsNumerical solution of system of linear equations
Numerical solution of system of linear equations
 

Viewers also liked

ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
fenil patel
 
numericai matmatic matlab uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullahnumericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic matlab uygulamalar ali abdullah
Ali Abdullah
 
Software Project Management: Project Summary
Software Project Management: Project SummarySoftware Project Management: Project Summary
Software Project Management: Project Summary
Minhas Kamal
 
Software Project Management: Budget
Software Project Management: BudgetSoftware Project Management: Budget
Software Project Management: Budget
Minhas Kamal
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
Teja Ande
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)
krishnapriya R
 
interpolation
interpolationinterpolation
interpolation8laddu8
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
Mohammad Tawfik
 
Trabajo de informática
Trabajo de informáticaTrabajo de informática
Trabajo de informática
nathalia borja
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
Dr. Asish K Mukhopadhyay
 
Numerical Method
Numerical MethodNumerical Method
Numerical Method
Ankita Khadatkar
 
Trabajo de Hugo G. y Hugo O. sobre Galileo Galilei
Trabajo de Hugo G. y Hugo O. sobre Galileo GalileiTrabajo de Hugo G. y Hugo O. sobre Galileo Galilei
Trabajo de Hugo G. y Hugo O. sobre Galileo Galileijmuceda
 
computer numerical control
computer numerical controlcomputer numerical control
computer numerical control
Lalrin Muani
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
Sunith Guraddi
 
Iterative methods
Iterative methodsIterative methods
Iterative methodsKt Silva
 
Software Project Presentation: Leaf Me Alone
Software Project Presentation: Leaf Me AloneSoftware Project Presentation: Leaf Me Alone
Software Project Presentation: Leaf Me Alone
Minhas Kamal
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
Raj Parekh
 

Viewers also liked (20)

ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
 
numericai matmatic matlab uygulamalar ali abdullah
numericai matmatic  matlab  uygulamalar ali abdullahnumericai matmatic  matlab  uygulamalar ali abdullah
numericai matmatic matlab uygulamalar ali abdullah
 
Software Project Management: Project Summary
Software Project Management: Project SummarySoftware Project Management: Project Summary
Software Project Management: Project Summary
 
Software Project Management: Budget
Software Project Management: BudgetSoftware Project Management: Budget
Software Project Management: Budget
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)NUMERICAL METHODS -Iterative methods(indirect method)
NUMERICAL METHODS -Iterative methods(indirect method)
 
interpolation
interpolationinterpolation
interpolation
 
Roots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open MethodsRoots of Nonlinear Equations - Open Methods
Roots of Nonlinear Equations - Open Methods
 
Es272 ch0
Es272 ch0Es272 ch0
Es272 ch0
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Trabajo de informática
Trabajo de informáticaTrabajo de informática
Trabajo de informática
 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
 
Numerical Method
Numerical MethodNumerical Method
Numerical Method
 
Trabajo de Hugo G. y Hugo O. sobre Galileo Galilei
Trabajo de Hugo G. y Hugo O. sobre Galileo GalileiTrabajo de Hugo G. y Hugo O. sobre Galileo Galilei
Trabajo de Hugo G. y Hugo O. sobre Galileo Galilei
 
computer numerical control
computer numerical controlcomputer numerical control
computer numerical control
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
 
Iterative methods
Iterative methodsIterative methods
Iterative methods
 
Software Project Presentation: Leaf Me Alone
Software Project Presentation: Leaf Me AloneSoftware Project Presentation: Leaf Me Alone
Software Project Presentation: Leaf Me Alone
 
Secante
SecanteSecante
Secante
 
Newton's forward difference
Newton's forward differenceNewton's forward difference
Newton's forward difference
 

Similar to Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)

Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuacionesNatalia
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuacionesNatalia
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with c
Yagya Dev Bhardwaj
 
Lecture6
Lecture6Lecture6
Lecture6
ladybuzz_89
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
Divya Bhatia
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equations
MdHaque78
 
The Application of Derivatives
The Application of DerivativesThe Application of Derivatives
The Application of Derivativesdivaprincess09
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection method
Arti Parab Academics
 
Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdf
JifarRaya
 
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfSolucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
FranciscoJavierCaedo
 
bisectionmethod-130831052031-phpapp02.pptx
bisectionmethod-130831052031-phpapp02.pptxbisectionmethod-130831052031-phpapp02.pptx
bisectionmethod-130831052031-phpapp02.pptx
avikkalsa
 
Secant method
Secant methodSecant method
Secant method
Zahra Saman
 
Nams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsNams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methods
Ruchi Maurya
 
Unit4
Unit4Unit4
Secant Method
Secant MethodSecant Method
Secant Method
Nasima Akhtar
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
nmahi96
 

Similar to Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear) (20)

Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuaciones
 
Raices de ecuaciones
Raices de ecuacionesRaices de ecuaciones
Raices de ecuaciones
 
Numerical differentation with c
Numerical differentation with cNumerical differentation with c
Numerical differentation with c
 
Lecture6
Lecture6Lecture6
Lecture6
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
 
Numerical method for solving non linear equations
Numerical method for solving non linear equationsNumerical method for solving non linear equations
Numerical method for solving non linear equations
 
The Application of Derivatives
The Application of DerivativesThe Application of Derivatives
The Application of Derivatives
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection method
 
03 optimization
03 optimization03 optimization
03 optimization
 
Introduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdfIntroduction to comp.physics ch 3.pdf
Introduction to comp.physics ch 3.pdf
 
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdfSolucao_Marion_Thornton_Dinamica_Classic (1).pdf
Solucao_Marion_Thornton_Dinamica_Classic (1).pdf
 
Numerical methods generating polynomial
Numerical methods generating polynomialNumerical methods generating polynomial
Numerical methods generating polynomial
 
AJMS_389_22.pdf
AJMS_389_22.pdfAJMS_389_22.pdf
AJMS_389_22.pdf
 
bisectionmethod-130831052031-phpapp02.pptx
bisectionmethod-130831052031-phpapp02.pptxbisectionmethod-130831052031-phpapp02.pptx
bisectionmethod-130831052031-phpapp02.pptx
 
Secant method
Secant methodSecant method
Secant method
 
Nams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methodsNams- Roots of equations by numerical methods
Nams- Roots of equations by numerical methods
 
Unit4
Unit4Unit4
Unit4
 
Secant Method
Secant MethodSecant Method
Secant Method
 
Matlab lab manual
Matlab lab manualMatlab lab manual
Matlab lab manual
 

More from Minhas Kamal

Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
Minhas Kamal
 
Deep Learning - Exploring The Magical World of Neural Network
Deep Learning - Exploring The Magical World of Neural NetworkDeep Learning - Exploring The Magical World of Neural Network
Deep Learning - Exploring The Magical World of Neural Network
Minhas Kamal
 
Machine Learning - Entering into The Wonderful Galaxy of Machine Learning
Machine Learning - Entering into The Wonderful Galaxy of Machine LearningMachine Learning - Entering into The Wonderful Galaxy of Machine Learning
Machine Learning - Entering into The Wonderful Galaxy of Machine Learning
Minhas Kamal
 
Artificial Intelligence - Staring at The Grand Universe of AI (1)
Artificial Intelligence - Staring at The Grand Universe of AI (1)Artificial Intelligence - Staring at The Grand Universe of AI (1)
Artificial Intelligence - Staring at The Grand Universe of AI (1)
Minhas Kamal
 
Final Project Report- Bengali Braille to Text Translator
Final Project Report- Bengali Braille to Text TranslatorFinal Project Report- Bengali Braille to Text Translator
Final Project Report- Bengali Braille to Text Translator
Minhas Kamal
 
Abstract- Bengali Braille to Text Translator
Abstract- Bengali Braille to Text TranslatorAbstract- Bengali Braille to Text Translator
Abstract- Bengali Braille to Text Translator
Minhas Kamal
 
Software Project Management: Testing Document
Software Project Management: Testing DocumentSoftware Project Management: Testing Document
Software Project Management: Testing Document
Minhas Kamal
 
Software Project Management: Change Control
Software Project Management: Change ControlSoftware Project Management: Change Control
Software Project Management: Change Control
Minhas Kamal
 
Software Project Management: Release Notes
Software Project Management: Release NotesSoftware Project Management: Release Notes
Software Project Management: Release Notes
Minhas Kamal
 
Software Project Management: Configuration Management
Software Project Management: Configuration ManagementSoftware Project Management: Configuration Management
Software Project Management: Configuration Management
Minhas Kamal
 
Software Project Management: Risk Management
Software Project Management: Risk ManagementSoftware Project Management: Risk Management
Software Project Management: Risk Management
Minhas Kamal
 
Software Project Management: Software Architecture
Software Project Management: Software ArchitectureSoftware Project Management: Software Architecture
Software Project Management: Software Architecture
Minhas Kamal
 
Software Project Management: Software Requirement Specification
Software Project Management: Software Requirement SpecificationSoftware Project Management: Software Requirement Specification
Software Project Management: Software Requirement Specification
Minhas Kamal
 
Software Project Management: Project Planning
Software Project Management: Project PlanningSoftware Project Management: Project Planning
Software Project Management: Project Planning
Minhas Kamal
 
Software Project Management: Business Case
Software Project Management: Business CaseSoftware Project Management: Business Case
Software Project Management: Business Case
Minhas Kamal
 
Software Project Management: Project Initiation
Software Project Management: Project InitiationSoftware Project Management: Project Initiation
Software Project Management: Project Initiation
Minhas Kamal
 
Software Project Management: Project Charter
Software Project Management: Project CharterSoftware Project Management: Project Charter
Software Project Management: Project Charter
Minhas Kamal
 
Software Project Management Presentation Final
Software Project Management Presentation FinalSoftware Project Management Presentation Final
Software Project Management Presentation Final
Minhas Kamal
 
Software Requirements Specification on Bengali Braille to Text Translator
Software Requirements Specification on Bengali Braille to Text TranslatorSoftware Requirements Specification on Bengali Braille to Text Translator
Software Requirements Specification on Bengali Braille to Text Translator
Minhas Kamal
 
Project Proposal: Bengali Braille to Text Translation
Project Proposal: Bengali Braille to Text TranslationProject Proposal: Bengali Braille to Text Translation
Project Proposal: Bengali Braille to Text Translation
Minhas Kamal
 

More from Minhas Kamal (20)

Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Deep Learning - Exploring The Magical World of Neural Network
Deep Learning - Exploring The Magical World of Neural NetworkDeep Learning - Exploring The Magical World of Neural Network
Deep Learning - Exploring The Magical World of Neural Network
 
Machine Learning - Entering into The Wonderful Galaxy of Machine Learning
Machine Learning - Entering into The Wonderful Galaxy of Machine LearningMachine Learning - Entering into The Wonderful Galaxy of Machine Learning
Machine Learning - Entering into The Wonderful Galaxy of Machine Learning
 
Artificial Intelligence - Staring at The Grand Universe of AI (1)
Artificial Intelligence - Staring at The Grand Universe of AI (1)Artificial Intelligence - Staring at The Grand Universe of AI (1)
Artificial Intelligence - Staring at The Grand Universe of AI (1)
 
Final Project Report- Bengali Braille to Text Translator
Final Project Report- Bengali Braille to Text TranslatorFinal Project Report- Bengali Braille to Text Translator
Final Project Report- Bengali Braille to Text Translator
 
Abstract- Bengali Braille to Text Translator
Abstract- Bengali Braille to Text TranslatorAbstract- Bengali Braille to Text Translator
Abstract- Bengali Braille to Text Translator
 
Software Project Management: Testing Document
Software Project Management: Testing DocumentSoftware Project Management: Testing Document
Software Project Management: Testing Document
 
Software Project Management: Change Control
Software Project Management: Change ControlSoftware Project Management: Change Control
Software Project Management: Change Control
 
Software Project Management: Release Notes
Software Project Management: Release NotesSoftware Project Management: Release Notes
Software Project Management: Release Notes
 
Software Project Management: Configuration Management
Software Project Management: Configuration ManagementSoftware Project Management: Configuration Management
Software Project Management: Configuration Management
 
Software Project Management: Risk Management
Software Project Management: Risk ManagementSoftware Project Management: Risk Management
Software Project Management: Risk Management
 
Software Project Management: Software Architecture
Software Project Management: Software ArchitectureSoftware Project Management: Software Architecture
Software Project Management: Software Architecture
 
Software Project Management: Software Requirement Specification
Software Project Management: Software Requirement SpecificationSoftware Project Management: Software Requirement Specification
Software Project Management: Software Requirement Specification
 
Software Project Management: Project Planning
Software Project Management: Project PlanningSoftware Project Management: Project Planning
Software Project Management: Project Planning
 
Software Project Management: Business Case
Software Project Management: Business CaseSoftware Project Management: Business Case
Software Project Management: Business Case
 
Software Project Management: Project Initiation
Software Project Management: Project InitiationSoftware Project Management: Project Initiation
Software Project Management: Project Initiation
 
Software Project Management: Project Charter
Software Project Management: Project CharterSoftware Project Management: Project Charter
Software Project Management: Project Charter
 
Software Project Management Presentation Final
Software Project Management Presentation FinalSoftware Project Management Presentation Final
Software Project Management Presentation Final
 
Software Requirements Specification on Bengali Braille to Text Translator
Software Requirements Specification on Bengali Braille to Text TranslatorSoftware Requirements Specification on Bengali Braille to Text Translator
Software Requirements Specification on Bengali Braille to Text Translator
 
Project Proposal: Bengali Braille to Text Translation
Project Proposal: Bengali Braille to Text TranslationProject Proposal: Bengali Braille to Text Translation
Project Proposal: Bengali Braille to Text Translation
 

Recently uploaded

Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
Donna Lenk
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Shahin Sheidaei
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
wottaspaceseo
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
Georgi Kodinov
 

Recently uploaded (20)

Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"Navigating the Metaverse: A Journey into Virtual Evolution"
Navigating the Metaverse: A Journey into Virtual Evolution"
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
Gamify Your Mind; The Secret Sauce to Delivering Success, Continuously Improv...
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
 

Numerical Method Analysis: Algebraic and Transcendental Equations (Non-Linear)

  • 1. 2014 Numerical Method Analysis Solution of Algebraic and Transcendental Equations Minhas Kamal BSSE0509
  • 2. 2 Solution of Algebraic and Transcendental Equations An equation of the type ( ) = is either algebraic or transcendental. These types of equations can be solved by using two types of methods- 1. Direct Method: This method gives the exact value of all the roots directly in a finite number of steps. 2. Indirect or Iterative Method: Iterative methods are best suited for computer programs to solve an equation. It is based on the concept of successive approximation. In Iterative Method there are two ways to solve an equation- i. Bracketing Method: We take two initial points where the root lies in between them. Example- Bisection Method, False Position Method. ii. Open End Method: We take one or two initial values where the root may be any-where. Example- Newton-Raphson Method, Successive Approximation Method, Secant Method. Bellow we shall discuss about these methods in detail. Bisection Method The Bisection Method is a root-finding method that repeatedly bisects an interval and then selects a subinterval in which a root must lie for further processing. Suppose that the bisection method is used to find a root of the polynomial- ( ) = ³ – – Now, two numbers a and b have to be found such that f(a) and f(b) have opposite signs. For the function, a=1 and b=2 satisfy this condition, as- ( ) = ³ − − = − and ( ) = ³ − − = In the first iteration the midpoint is-
  • 3. 3 = ( + )/ = . The function value is- ( ) = . ³ − . − = − . Because f(c) is negative, value of a is replaced with 1.5 and as this continues, the interval between a and b will become increasingly smaller, converging on the root of the function. See this happen in the table below. Iteration a b c f(c) 1 1.00000 2. 00000 1.50000 −0.12500 2 1.50000 2. 00000 1.75000 1.60937 3 1.50000 1.75000 1.62500 0.66601 4 1.50000 1.62500 1.56250 0.25219 5 1.50000 1.56250 1.53125 0.05911 6 1.50000 1.53125 1.51562 −0.03405 7 1.51562 1.53125 1.52343 0.01225 8 1.51562 1.52343 1.51953 −0.01097 9 1.51953 1.52343 1.52148 0.00062 So, we got 1.52148 as a root for the polynomial where ϵ0=0.001. Here is a function in C that uses this method to solve equations- /** * takes two initial values and shortens the distance by both side **/ double BisectionMethod(){ double root=0; double a=1, b=3; double c=0, fc=0; int loopCounter=0; if(f(a)*f(b) < 0){ while(1){ loopCounter++; c=(a+b)/2; fc=f(c);
  • 4. 4 if(fc<0.00001 && fc>-0.00001){ root=c; break; } if((f(a))*(fc) < 0){ b=c; }else{ a=c; } } } printf("It took %d loops.n", loopCounter); return root; } False Position Method It is a method that ends up with a new root estimate after every repetition and gradually approaches toward more precise solution. The method uses this equation for finding estimated root- = ∗ ( )– ∗ ( ) ( )– ( ) Let’s take the previous function, ( ) = ³ – – For, a=1 and b=2, f(a) and f(b) have opposite signs. So in the first iteration- c = [1*4 – 2*(-2) ] / [4 – (-2)] = 1.3333 The function is- ( ) = − .
  • 5. 5 So we get the following table- Iteration c f(c) 1 1.3333 −0.9629 2 1.4626 −0.3333 3 1.5040 −0.1018 4 1.5163 −0.0298 5 1.5199 −0.0086 6 1.5209 −0.0025 7 1.5212 −0.0007 So, we got root =1.5212 for the polynomial. Here is a function in C that uses this method to solve equations- /** * takes two initial values and shortens the distance by single side **/ double FalsePosition(){ double root=0; double a=1, b=2; double c=0, fc=0; int loopCounter=0; if(f(a)*f(b) < 0){ while(1){ loopCounter++; c=(a*f(b) - b*f(a)) / (f(b) - f(a)); fc=f(c); if(fc<0.00001 && fc>-0.00001){ root=c; break; } if((f(a))*(fc) < 0){ b=c;
  • 6. 6 }else{ a=c; } } } printf("It took %d loops.n", loopCounter); return root; } Newton-Raphson Method The Newton-Raphson method is simple, fast and the best-known method of finding roots of a function f (x). It uses one initial point to find the root. It not only uses the main function but also the derivative of the function. Derivative of the previous function is- ′ ( ) = ² − For this function we take x1 =1 and we try to find x2 with this equation- = – ( ) ′( ) And, in every iteration we update the value of x1. So first time we get- = So- ( ) = Here is the table- Iteration X2 f(x2) 1 2.0000 4.0000 2 1.6363 0.7453 3 1.5303 0.0539 4 1.5214 0.0003
  • 7. 7 So, we got root =1.5214. Here is the code of function- /** * uses one initial value and gradually takes that value near to the real one **/ double NewtonRaphson(){ double root=0; double x1=1; double x2=0; int loopCounter=0; while(1){ loopCounter++; x2 = x1 - (f(x1)/f2(x1)); if(f(x2)<0.00001 && f(x2)>-0.00001){ root=x2; break; } x1=x2; } printf("It took %d loops.n", loopCounter); return root; } Successive Approximation Method In this method we first take an initial value, then we try to approximate the root and examine if it is the real root, if it is not the root we try to approximate the next root depending on the previous approximation thus the approximation evaluates toward the root. Take the previous example. We shall first find ( ) - Let, ( ) =
  • 8. 8 ⟹ ³ − − = ⟹ ³ = + ⟹ = ³√( + ) So, ( ) = ³√( + ) Now for the initial value we take x=1. So then- ( ) = . We get- − ( ) = − . Here is the table- Iteration g(x) x-g(x) 1 1.44225 -0.44225 2 1.50989 -0.06764 3 1.51972 -0.00982 4 1.52114 -0.00141 5 1.52134 -0.00020 The method finds out 1.52134 as the root. The code is bellow- /** * uses one initial value and gradually takes that value near to the real one **/ double FixedPoint(){ double root=0; double x=1;
  • 9. 9 int loopCounter=0; while(1){ loopCounter++; if( (x-g(x)) <0.00001 && (x-g(x)) >-0.00001){ root = x; break; } x=g(x); } printf("It took %d loops.n", loopCounter); return root; } Secant Method The secant method is very similar to the Newton-Raphson method. Newton- Raphson method needs to determine derivatives of the function at several points, which is a drawback. For our equation we take two initial value (the root may/may not be between them) x0=1, x1=2 and see if x1 is the root- f(x1) = 4 If not then we try to value x2 where- 2 = !" 0∗$( 1)&−" 1∗$( 0)&' "$( 1)−$( 0)& = 1.333 We set x0= x1 & x1= x2 and repeat the process till f(x1)=0. See this happen in the following table-
  • 10. 10 Iteration X0 X1 f(X1) 1 1.0000 2.0000 4.00000 2 2.0000 1.3333 -0.96296 3 1.3333 1.4626 -0.33333 4 1.4626 1.5311 0.05862 5 1.5311 1.5209 -0.00269 6 1.5209 1.5213 -0.00002 So we get root = 1.5213. Here is the C coded function- /** * uses two initial values & both value approaches to the root **/ double Secant(){ double root=0; double x0=1; double x1=2; double x2=0; int loopCounter=0; while(1){ loopCounter++; if(f(x1)<0.00001 && f(x1)>-0.00001){ root=x1; break; } x2 = ((x0*f(x1))-(x1*f(x0))) / (f(x1)-f(x0)); x0=x1; x1=x2; } printf("It took %d loops.n", loopCounter); return root; }