V-Lab @ ANDC

Secant Method

For finding the roots of linear, quadratic and third degree polynomial.

For finding the roots of transcendental equation.

To start the solution of the function f(x) two initial guesses are required such that f(x0)< 0 and f(x1)>0. Usually it hasn't been asked to find, that root of the polynomial f(x) at which f(x) =0. Mostly You would only be asked by the problem to find the root of the f(x) till two decimal places or three decimal places or four etc. for example x3 -2x - 5. And two values: a=(-5) and b= (8) such that f(a)*f(b) < 0, i.e., f(a) and f(b) have opposite signs.
Output:
The value of root is : 2.11 or any other value with allowed deviation from root.

f(x)= a x3 +b x2+c x1 + d :

Enter the coefficients of the equation:

x3+ x2+ x1+
g = , h =
Result:

To start the solution of the function f(x) two initial guesses are required such that f(x0)< 0 and f(x1)>0. Usually it hasn't been asked to find, that root of the polynomial f(x) at which f(x) =0. Mostly You would only be asked by the problem to find the root of the f(x) till two decimal places or three decimal places or four etc.
Input:
A function of x, for example x3 -2x - 5. And two values: a=(-5) and b= (8) such that f(a)*f(b) < 0, i.e., f(a) and f(b) have opposite signs.
Output:
The value of root is : 2.11 or any other value with allowed deviation from root.

Make sure to add space after typing every variable in the function.
example. x2 + x - cos(x).




Result: