数值计算
%%float number arithmetic x=randn(1,1e+4); y=randn(1,1e+4); z=ones(1,1e+4); z=z*1e+10; w=y.*z; format long s1=0; for n=1:1e+4 s1=s1+x(n); end s1
s2=0; for n=1:1e+4 s2=s2+w(n); end s2 s=s1+s2 t=0; for n=1:1e+4 t=t+x(n)+w(n); end t
数值计算
%%float number arithmetic x=randn(1,1e+4); y=randn(1,1e+4); z=ones(1,1e+4); z=z*1e+10; w=y.*z; format long s1=0; for n=1:1e+4 s1=s1+x(n); end s1
s2=0; for n=1:1e+4 s2=s2+w(n); end s2 s=s1+s2 t=0; for n=1:1e+4 t=t+x(n)+w(n); end t
下一篇:爆破施工工艺流程图