f=@(x) exp(-x); x0=0; h=0.01; s=0; for i=1:1:99 s=s+f(x0+i*h); end answer=h*0.5*(f(0)+f(1)+2*s); printf('%.15d',answer);