Regula Falsi Method C Program

By | June 12, 2017

Let us learn how to find the root of an interval using regula falsi method in C programming language.

Let us first understand what is a false position method and then let us see the C program for it.

What is False Position Method?

This method is also commonly known as False Position Method. It is basically a root finding method and is one of the oldest approaches. It is quite similar to bisection method algorithm.

Similar to the bisection method, the false position method also requires two initial guesses which are of opposite nature.

The false position method is also commonly known as The Chords Method. This method is an improvement over the slow convergence of bisection method.

The false position method is used to find the real roots of an equation using bracketing approach. This algorithm is used to solve transcendental equations.

Consider this non-linear function:

f(x) = x3 – 5

where [ a = 1, b = 2 ] and Error = 0.001

Regula Falsi Method Theorem

Given a function f(x) on floating number x and two numbers a and b such that f(a)*f(b) < 0 and f(x) is continuous in [a, b].

The false position method algorithm or the Illinois Algorithm in C programming is used for finding roots which retain the prior estimates for which the function value has opposite sign from the function value at the current best estimate of the root.

Regula Falsi Method Algorithm

• Input an interval(start and end values), continuous function and function values f(a) and f(b).
• Find the mid-point (c) value of the function.
• If the transformation is satisfactory, return the mid-point and then stop the iteration.
• Check the sign value of f(c) and replace the appropriate function and values.

In another way, the algorithm of false position algorithm can also be represented in the following way:

Given a function f (x) continuous on an interval [a,b] and f (a) * f (b) < 0

Output

If you have any doubts about the implementation of Regula Falsi method in C programming, let us know about it in the comment section.

NUMERICAL METHODS C PROGRAMS
Newton-Raphson Method C Program
Weddle’s Rule Algorithm C Program
Euler’s Method C Program
Secant Method C Program
Bisection Method C Program
Gauss Seidel Method C Program
Simpson’s 3/8th Rule C Program
Picard’s Method C Program
Bisection Method Algorithm and Flowchart
Simpson’s 1/3rd Rule C Program
Trapezoidal Rule C Program