文件名称:bisection_new
介绍说明--下载内容均来自于网络,请自行研究使用
Step 1: Set i=1
FA=f(a)
Step 2: while i≤ No do step 3-6.
Step 3 set p=(a+b)/2
FP=f(p)
Step 4 if FP<TOL or (b-a)/2<TOL then
OUTPUT(p)
STOP.
prepared by Razana Alwee
24
Algorithm
Step 5 set i=i+1
Step 6 if FA.FP > 0 then set a=p
FA=FP
else set b=p.
Step 7 OUTPUT (‘Method failed after No iteration,
No=’, No)
FA=f(a)
Step 2: while i≤ No do step 3-6.
Step 3 set p=(a+b)/2
FP=f(p)
Step 4 if FP<TOL or (b-a)/2<TOL then
OUTPUT(p)
STOP.
prepared by Razana Alwee
24
Algorithm
Step 5 set i=i+1
Step 6 if FA.FP > 0 then set a=p
FA=FP
else set b=p.
Step 7 OUTPUT (‘Method failed after No iteration,
No=’, No)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bisection_new.m