项目作者: 9mpd

项目描述 :
Bisection Method to calculate root of a function
高级语言: MATLAB
项目地址: git://github.com/9mpd/Bisection_Method.git
创建时间: 2021-03-27T13:57:28Z
项目社区:https://github.com/9mpd/Bisection_Method

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Bisection_Method

This is an iteration method based on Intermediate Value Theorem.

The bisection method is a root-finding method that applies to any continuous functions
for which one knows two values with opposite signs. The method consists of repeatedly
bisecting the interval defined by these values and then selecting the subinterval in which
the function changes sign, and therefore must contain a root.
It is a very simple and robust method, but it is also relatively slow. Because of this, it is often used to obtain a
rough approximation to a solution which is then used as a starting point for more rapidly
converging methods.

Screenshot (525)

Now, let ak and bk be the kth iterations
then

mk+1 = ak + 1/2(bk - ak), k = 0,1,2…

(ak+1, bk+1) = (ak, mk+1) if f(ak)*f(mk+1) < 0

(ak+1, bk+1) = (mk+1, bk) if f(bk)*f(mk+1) < 0