SlideShare a Scribd company logo
1 of 16
FALSE POSITION
METHOD
By SATYAJIT NAG-10.01.05.042

   H.M. ZUBAER -10.01.05.028

   MOSTOFA ZAMAN FAISAL-10.01.05.036
FINDING ROOTS / SOLVING
EQUATIONS
 The given quadratic formula provides a quick answer
  to all quadratic equations:
 Easy

                                       −b     b 2 − 4ac
         ax 2 +bx + c = 0       ⇒ x=
                                               2a
But, not easy


ax + bx + cx + dx + ex + f = 0
     5       4     3        2
                                                ⇒ x=?
   No exact general solution (formula) exists for equations
    with exponents greater than 4.
FINDING ROOTS…
   For this reason, we have to find out the root to
    solve the equation.

 However we can say how accurate our solution is
  as compared to the “exact” solution.
 One of the method is FALSE POSITION.
THE FALSE-POSITION METHOD               (REGULA-
FALSI)


  To refine the bisection method, we can choose a ‘false-
  position’ instead of the midpoint.
  The false-position is defined as the x position where a
  line connecting the two boundary points crosses the
  axis.
REGULA FALSI

 For   example, if f(xlow) is much closer to zero
  than f(xup), it is likely that the root is closer
  to xlow than to xup.
 False position method is an alternative
  approach where f(xlow) and f(xup) are joined
  by a straight line; the intersection of
  which with the x-axis represents and
  improved estimate of the root.
 The intersection of this line with the x
  axis represents an improved estimate of
  the root.
LINEAR INTERPOLATION METHOD
 The fact that the replacement of the curve by a
  straight line gives the false position of the root is
  the origin of the name, method of false position,
  or in Latin, Regula Falsi.
 It is also called the Linear Interpolation Method.
FALSE POSITION FORMULAE
   Using similar triangles, the intersection of the straight
    line with the x axis can be estimated as
     f ( xl )  f ( xu )
              =
     x −  xl   x −  xu
           f ( xu )( xl − )xu
     x = −
        xu
           f ( xl ) − xu )
                       f (



   This is the False Position formulae. The value of x then
    replaces whichever of the two initial guesses, low x or
    up x , yields a function value with the same sign as f (x)
    .
ALGORITHM
 Given   two guesses xlow, xup that bracket
    the root,
 Repeat              f ( xu )( xl − xu )
   Set       x = xu −
                      f ( xl ) − f ( xu )





 If f(xup) is of opposite sign to f(xlow) then
    Set xlow = xup
 Else Set xlow = x
 End If
 Until y< tolerance value.
CODE
   Find the real root of the equation d(x)=x5+x+1using Fasle
    Position Method. xlow = -1, xup =0 and ε = selected x tolerance =10^-4
    .

 clear all;
 close all;
 clc;
 xlow=-1;
 xup=0;
 xtol=10^-4;
 f=@(x)(x^5+x+1);
 x=xup-(f(xup)*(xlow-xup))/(f(xlow)-f(xup))
 y=f(x);
 iters=0;
CODE CONTINUED…..
 while    (((xup-x)/2>xtol)&& y>xtol)
     if (f(xlow)*f(x)>0)
         xlow=x;
     else xup=x;
     end
    x=xup-(f(xup)*(xlow-xup))/(f(xlow)-f(xup));
    y=f(x);
    iters=iters+1;
    end
x
y
 iters
MERITS & DEMERITS
   Merits
         As the interval becomes small, the interior
    point generally becomes much closer to root.
         Faster convergence than bisection.
         Often superior to bisection.
Demerits
            fa




             a                                       b


Problem with Regula Falsi -- if the graph is convex down, the
  interpolated point will repeatedly appear in the larger segment….
DEMERITS

   Demerits
          It can’t predict number of iterations to
    reach a give precision.
         It can be less precise than bisection – no
    strict precision guarantee.
 Though the difference between Bisection and
  False Position Method is little but for some cases
  False Position Method is useful and for some
  problems Bisection method is effective….
 In fact they both are necessary to solve any
  equation by ‘Bracketing method’.
THE END
Presentation aust final

More Related Content

What's hot

Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fittingAmeen San
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsMeenakshisundaram N
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Mohd. Noor Abdul Hamid
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.Abu Kaisar
 
The Application of Derivatives
The Application of DerivativesThe Application of Derivatives
The Application of Derivativesdivaprincess09
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson MethodJigisha Dabhi
 
Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Matthew Leingang
 
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 equationsreach2arkaELECTRICAL
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiationmath265
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationAinul Islam
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equationsZunAib Ali
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson methodJayesh Ranjan
 

What's hot (20)

Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fitting
 
Numerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential EquationsNumerical Solution of Ordinary Differential Equations
Numerical Solution of Ordinary Differential Equations
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor
 
Interpolation In Numerical Methods.
 Interpolation In Numerical Methods. Interpolation In Numerical Methods.
Interpolation In Numerical Methods.
 
Secant method
Secant methodSecant method
Secant method
 
The Application of Derivatives
The Application of DerivativesThe Application of Derivatives
The Application of Derivatives
 
Newton-Raphson Method
Newton-Raphson MethodNewton-Raphson Method
Newton-Raphson Method
 
Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)Lesson 25: Evaluating Definite Integrals (slides)
Lesson 25: Evaluating Definite Integrals (slides)
 
Integration by parts
Integration by partsIntegration by parts
Integration by parts
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Secant Method
Secant MethodSecant Method
Secant Method
 
Limits and continuity
Limits and continuityLimits and continuity
Limits and continuity
 
Secant Method
Secant MethodSecant Method
Secant 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
 
3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation3.2 implicit equations and implicit differentiation
3.2 implicit equations and implicit differentiation
 
MATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and IntegrationMATLAB : Numerical Differention and Integration
MATLAB : Numerical Differention and Integration
 
Solution of non-linear equations
Solution of non-linear equationsSolution of non-linear equations
Solution of non-linear equations
 
Newton raphson method
Newton raphson methodNewton raphson method
Newton raphson method
 
Secant method
Secant method Secant method
Secant method
 
Numerical Methods 3
Numerical Methods 3Numerical Methods 3
Numerical Methods 3
 

Viewers also liked

Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydineshDinesh Kumar
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi methodandrushow
 
Calculations of roots
Calculations of rootsCalculations of roots
Calculations of rootsoscar
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methodsDivya Bhatia
 
False position
False positionFalse position
False positionuis
 
Bracketing or closed methods
Bracketing or closed methodsBracketing or closed methods
Bracketing or closed methodsandrushow
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methodsTarun Gehlot
 
Teori bilangan (induksi matematika)
Teori bilangan (induksi matematika)Teori bilangan (induksi matematika)
Teori bilangan (induksi matematika)1724143052
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Asad Ali
 

Viewers also liked (18)

Regulafalsi_bydinesh
Regulafalsi_bydineshRegulafalsi_bydinesh
Regulafalsi_bydinesh
 
Regula falsi method
Regula falsi methodRegula falsi method
Regula falsi method
 
Calculations of roots
Calculations of rootsCalculations of roots
Calculations of roots
 
Bisection & Regual falsi methods
Bisection & Regual falsi methodsBisection & Regual falsi methods
Bisection & Regual falsi methods
 
False position
False positionFalse position
False position
 
Bracketing or closed methods
Bracketing or closed methodsBracketing or closed methods
Bracketing or closed methods
 
Bisection method
Bisection methodBisection method
Bisection method
 
Applications of numerical methods
Applications of numerical methodsApplications of numerical methods
Applications of numerical methods
 
Lecture6
Lecture6Lecture6
Lecture6
 
Numerical Method
Numerical MethodNumerical Method
Numerical Method
 
Roots equation
Roots equationRoots equation
Roots equation
 
Tabel.biseksi.regula falsi
Tabel.biseksi.regula falsiTabel.biseksi.regula falsi
Tabel.biseksi.regula falsi
 
bisection method
bisection methodbisection method
bisection method
 
Teori bilangan (induksi matematika)
Teori bilangan (induksi matematika)Teori bilangan (induksi matematika)
Teori bilangan (induksi matematika)
 
Bracketing Methods
Bracketing MethodsBracketing Methods
Bracketing Methods
 
BSCS | BSIT Thesis Guidelines
BSCS | BSIT Thesis GuidelinesBSCS | BSIT Thesis Guidelines
BSCS | BSIT Thesis Guidelines
 
Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)Numerical Analysis (Solution of Non-Linear Equations)
Numerical Analysis (Solution of Non-Linear Equations)
 
Numerical method
Numerical methodNumerical method
Numerical method
 

Similar to Presentation aust final

Adv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdfAdv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdfchhatrapalnetam
 
Roots of equations
Roots of equationsRoots of equations
Roots of equationsMileacre
 
Equations root
Equations rootEquations root
Equations rootMileacre
 
Analysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruptionAnalysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruptionuttamna97
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodArti Parab Academics
 
Mit18 330 s12_chapter4
Mit18 330 s12_chapter4Mit18 330 s12_chapter4
Mit18 330 s12_chapter4CAALAAA
 
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 etcRiyandika Jastin
 
Cs229 notes8
Cs229 notes8Cs229 notes8
Cs229 notes8VuTran231
 
Roots of equations
Roots of equations Roots of equations
Roots of equations shopnohinami
 
Solution of nonlinear_equations
Solution of nonlinear_equationsSolution of nonlinear_equations
Solution of nonlinear_equationsTarun Gehlot
 
Root Equations Methods
Root Equations MethodsRoot Equations Methods
Root Equations MethodsUIS
 
MetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special FunctionsMetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special FunctionsLawrence Paulson
 

Similar to Presentation aust final (20)

Adv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdfAdv. Num. Tech. 1 Roots of function.pdf
Adv. Num. Tech. 1 Roots of function.pdf
 
Roots of equations
Roots of equationsRoots of equations
Roots of equations
 
Equations root
Equations rootEquations root
Equations root
 
Roots equation
Roots equationRoots equation
Roots equation
 
Analysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruptionAnalysis for engineers _roots_ overeruption
Analysis for engineers _roots_ overeruption
 
Quantitive Techniques: Bisection method
Quantitive Techniques: Bisection methodQuantitive Techniques: Bisection method
Quantitive Techniques: Bisection method
 
Mit18 330 s12_chapter4
Mit18 330 s12_chapter4Mit18 330 s12_chapter4
Mit18 330 s12_chapter4
 
Bisection
BisectionBisection
Bisection
 
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
 
Cs229 notes8
Cs229 notes8Cs229 notes8
Cs229 notes8
 
Roots of equations
Roots of equations Roots of equations
Roots of equations
 
Solution of nonlinear_equations
Solution of nonlinear_equationsSolution of nonlinear_equations
Solution of nonlinear_equations
 
Ch 2
Ch 2Ch 2
Ch 2
 
Bca numer
Bca numerBca numer
Bca numer
 
Quadrature
QuadratureQuadrature
Quadrature
 
Root Equations Methods
Root Equations MethodsRoot Equations Methods
Root Equations Methods
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
Sol78
Sol78Sol78
Sol78
 
Sol78
Sol78Sol78
Sol78
 
MetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special FunctionsMetiTarski: An Automatic Prover for Real-Valued Special Functions
MetiTarski: An Automatic Prover for Real-Valued Special Functions
 

Recently uploaded

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 

Recently uploaded (20)

Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 

Presentation aust final

  • 1. FALSE POSITION METHOD By SATYAJIT NAG-10.01.05.042 H.M. ZUBAER -10.01.05.028 MOSTOFA ZAMAN FAISAL-10.01.05.036
  • 2. FINDING ROOTS / SOLVING EQUATIONS  The given quadratic formula provides a quick answer to all quadratic equations:  Easy −b  b 2 − 4ac ax 2 +bx + c = 0 ⇒ x= 2a But, not easy ax + bx + cx + dx + ex + f = 0 5 4 3 2 ⇒ x=?  No exact general solution (formula) exists for equations with exponents greater than 4.
  • 3. FINDING ROOTS…  For this reason, we have to find out the root to solve the equation.  However we can say how accurate our solution is as compared to the “exact” solution.  One of the method is FALSE POSITION.
  • 4. THE FALSE-POSITION METHOD (REGULA- FALSI) To refine the bisection method, we can choose a ‘false- position’ instead of the midpoint. The false-position is defined as the x position where a line connecting the two boundary points crosses the axis.
  • 5. REGULA FALSI  For example, if f(xlow) is much closer to zero than f(xup), it is likely that the root is closer to xlow than to xup.  False position method is an alternative approach where f(xlow) and f(xup) are joined by a straight line; the intersection of which with the x-axis represents and improved estimate of the root.  The intersection of this line with the x axis represents an improved estimate of the root.
  • 6. LINEAR INTERPOLATION METHOD  The fact that the replacement of the curve by a straight line gives the false position of the root is the origin of the name, method of false position, or in Latin, Regula Falsi.  It is also called the Linear Interpolation Method.
  • 7. FALSE POSITION FORMULAE  Using similar triangles, the intersection of the straight line with the x axis can be estimated as f ( xl ) f ( xu ) = x − xl x − xu f ( xu )( xl − )xu x = − xu f ( xl ) − xu ) f (  This is the False Position formulae. The value of x then replaces whichever of the two initial guesses, low x or up x , yields a function value with the same sign as f (x) .
  • 8. ALGORITHM  Given two guesses xlow, xup that bracket the root,  Repeat f ( xu )( xl − xu ) Set x = xu − f ( xl ) − f ( xu )   If f(xup) is of opposite sign to f(xlow) then  Set xlow = xup  Else Set xlow = x  End If  Until y< tolerance value.
  • 9. CODE  Find the real root of the equation d(x)=x5+x+1using Fasle Position Method. xlow = -1, xup =0 and ε = selected x tolerance =10^-4 .  clear all;  close all;  clc;  xlow=-1;  xup=0;  xtol=10^-4;  f=@(x)(x^5+x+1);  x=xup-(f(xup)*(xlow-xup))/(f(xlow)-f(xup))  y=f(x);  iters=0;
  • 10. CODE CONTINUED…..  while (((xup-x)/2>xtol)&& y>xtol)  if (f(xlow)*f(x)>0)  xlow=x;  else xup=x;  end  x=xup-(f(xup)*(xlow-xup))/(f(xlow)-f(xup));  y=f(x);  iters=iters+1;  end x y  iters
  • 11. MERITS & DEMERITS  Merits As the interval becomes small, the interior point generally becomes much closer to root. Faster convergence than bisection. Often superior to bisection.
  • 12. Demerits fa a b Problem with Regula Falsi -- if the graph is convex down, the interpolated point will repeatedly appear in the larger segment….
  • 13. DEMERITS  Demerits It can’t predict number of iterations to reach a give precision. It can be less precise than bisection – no strict precision guarantee.
  • 14.  Though the difference between Bisection and False Position Method is little but for some cases False Position Method is useful and for some problems Bisection method is effective….  In fact they both are necessary to solve any equation by ‘Bracketing method’.