CS计算机代考程序代写 cl=4.0;

cl=4.0;
cu=6.0;
cr=(cl+cu)/2.0;
fcr=(50/cr)*(1-exp(-9*cr/5))-10;

while abs(fcr)>1.0e-4

fcl=(50/cl)*(1-exp(-9*cl/5))-10;
fcu=(50/cu)*(1-exp(-9*cu/5))-10;
fcr=(50/cr)*(1-exp(-9*cr/5))-10;

if fcr*fcl < 0 cu= cr; elseif fcr*fcu < 0 cl= cr; end cr=(cl+cu)/2.0 end