文件名称:MatLAb代码(初学者)
文件大小:8KB
文件格式:RAR
更新时间:2012-04-26 03:09:00
MATLAB 源代码
function [c,err,yc]=bisect(f,a,b,delta)
ya=feval(f,a);
yb=feval(f,b);
if ya*yb>0,break,end
max1=-1+round((log(b-a)-log(delta))/log(2));
for k=1:max1
c=(a+b)/2;
yc=feval(f,c);
if yc==0
a=c;
b=c;
elseif yb*yc>0
b=c;
yb=yc;
else
a=c;
ya=yc;
end
if b-a
【文件预览】:
chap4_2.m
chap4_1.m
chap7_9.m
chap4_3.m
colgauss.m
ch3_1.m
chap7_1.m
chap7_2.m
chap7_6.m
chap6_1.m
bisect.m
chap7_7.m
f.m
chap8_3.m
ch3_2.m
chap8_2.m
secant.m
trapez_v.m
lagan.m
chap8_1.m
mean_st.m
chap7_5.m
chap5_1.m
xyz.m
gauss.m
chap7_3.m
ch3_4.m
ch3_3.m
naorthfit.m
chap7_8.m
chap7_4.m