Regula Falsi Method is use to find the root of non-linear equation in numerical method. This is a closed method because at each iteration we have to check the sign of the function. Since root lie within the interval in domain, that is why it is also known as bracketing method. This method is faster than bisection method and slower than Newton Raphson method. It give the guarantee to converge a unique root. The method of false position require two initial guesses to start the solution and there is no need to find the derivative of the function.

The formula of Regula falsi method is

At here, we write the code of **Method of False Position in MATLAB** step by step. MATLAB is easy way to solve complicated problems that are not solve by hand or impossible to solve at page. MATLAB is develop for mathematics, therefore MATLAB is the abbreviation of **MAT**rix **LAB**oratory.

At here, we find the root of the function f(x) = x^{2}-2 = 0 by using Regula Falsi method with the help of MATLAB.

## MATLAB Code of Regula Falsi Method

```
clear all;
close all;
clc;
f=inline('x^2-2');
x0=input('Enter x0=');
x1=input('Enter x1=');
tol=input('Enter tolerance=');
itr=input('Enter number of iteration=');
p=0;
for i=1:itr
x2=(x0*f(x1)-x1*f(x0))/(f(x1)-f(x0));
if abs(x2-x1) < tol
p=1;
k=i;
break;
else
if f(x0)*f(x2)<0
x1=x2;
else
x0=x2;
end
end
end
if p==1
fprintf('Solution is %f at iteration %i',x2,k)
else
fprintf('No convergent solution exist in the given number iteration')
end
```

## Other Numerical Methods with MATLAB Coding

- Bisection Method with MATLAB
- Newton Raphson Method with MATLAB
- Secant Method with MATLAB
- Regula Falsi Method with MATLAB
- Fixed Point Iteration with MATLAB
- Trapezoidal Rule with MATLAB
- Simpson 1/3 Rule with MATLAB
- Simpson 3/8 Rule with MATLAB
- Bool’s Rule with MATLAB
- Weddle’s Rule with MATLAB
- Euler Method with MATLAB
- Modified Euler Method with MATLAB
- Midpoint Method with MATLAB
- Runge-Kutta Method with MATLAB
- Millen’s Method with MATLAB
- Adams Bashforth Moulton Method with MATLAB
- Newton Forward Difference Interpolation with MATLAB
- Newton Backward Difference Interpolation with MATLAB
- Lagrange Interpolation with MATLAB
- Newton Divided Difference Interpolation with MATLAB
- Hermite Interpolation with MATLAB
- Natural Cubic Spline Interpolation with MATLAB
- Gauss Jacobi Method with MATLAB
- Gauss Seidal Method with MATLAB
- Power Method with MATLAB