Programs‎ > ‎Numerical Analysis‎ > ‎

Roots of Equation

Bisection Method(Interval halving)


Takes a function, range and tolerance as input and outputs the bisection table.
To compile use gcc -o filename filename.c -lmuparser

Visit the link below for the program code
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=13635&lngWId=3













Secant Method


Its an optimized bisection method of computing a solution. The same input function of bisection method is illustrated here with the secant method.It is observed 13 iterations reduced to 5 iteration in case of secant method

Visit the link below for the program code
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=13636&lngWId=3













Method of Falsi Position(Regular Falsi)

Computes solution of Input function f(x), x1 & x2 and tolerance. Its an optimized form of both the bisection & Secant method

Visit the link below for the program code
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=13637&lngWId=3
Comments