数值计算
%%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
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Ch2 数值计算的基本概念(19)在线全文阅读。
相关推荐: