Regula Falsi or False Position Method Pseudocode

Earlier in Regula Falsi or False Position Algorithm, we discussed about an algorithm for computing real root of non-linear equation using Regula Falsi or False Position Method. In this tutorial we are going to develop pseudocode for Regula Falsi or False Position Method so that it will be easy while implementing using programming language.

Complete Pseudocode for Regula Falsi or False Position Method

1. Start

2. Define function f(x)

3. Input 
	a. Lower and Upper guesses x0 and x1
	b. tolerable error e
	
4. If f(x0)*f(x1) > 0
	print "Incorrect initial guesses"
   	goto 3
   End If
   
5. Do

	x2 = x0 - ((x0-x1) * f(x0))/(f(x0) - f(x1))
		
	If f(x0)*f(x2) < 0
		x1 = x2
	Else
		x0 = x2
	End If
		
   While abs(f(x2) > e
   
6. Print root as x2

7. Stop

Recommended Readings

  1. Regula Falsi or False Position Method Algorithm
  2. Regula Falsi or False Position Method Pseudocode
  3. Regula Falsi or False Position Method Using C
  4. Regula Falsi or False Position Method Using MATLAB with Output
  5. Regula Falsi or False Position Method Online Calculator