Skip to content

wise-saint/Regula_Falsi_Method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Regula_Falsi_Method

Iteration method to find root of a function.

This method is based on the first degree equation.

Geometrically, in this method we replace the function f(x) by a straight line, l
or a chord passing through the points (xk, fk) and
(xk-1, fk-1) and take the point of intersection, xk+1 of the straight line with the x-axis
as the next approximation to the root.

image

Equating slope of the line, m gives :
m = (fk - fk-1)/(xk - xk-1) = (-fk)/(xk+1 - xk)
=> xk+1 = xk - (xk - xk-1)*fk / (fk - fk-1)

If the approximations are such that fk * fk-1 < 0 then the method is known as Regula Falsi method.
For next iteration use :
xk = xk+1 if fk * fk-1 < 0
xk-1 = xk+1 if fk * fk-1 > 0

Releases

No releases published

Packages

No packages published

Languages