matlab计算

1、

a=1000;
b=3;
s1=1.0;
s2=10000000;
while abs(s2-s1)>0.000001
    s1=s2;
    s2=a/(b+s1);
    s1,s2
end

相关推荐