陈兆杰实验八和实验九

陈兆杰实验八和实验九

ID:37936397

大小:43.50 KB

页数:8页

时间:2019-06-03

陈兆杰实验八和实验九_第1页
陈兆杰实验八和实验九_第2页
陈兆杰实验八和实验九_第3页
陈兆杰实验八和实验九_第4页
陈兆杰实验八和实验九_第5页
资源描述:

《陈兆杰实验八和实验九》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、实验八数据处理与多项式计算1.A=rand(1,30000);B=mean(A);C=std(A);D=max(A);E=min(A);k=find(A>0.5);F=length(k)/length(A);BCDEF运行结果:B=0.5006C=0.2888D=0.9999E=5.2801e-006F=0.50122.(1)P=rand(100,5);[a,b]=max(P)[c,d]=min(P)运行结果:a=94.665794.270894.921494.667494.3621b=739371354c=45.315645.456145.491745.156746.1

2、281d=3815282131(2).实验内容mean(P)运行结果:ans=67.617967.081469.676268.502269.1406>>std(P,0,1)ans=14.548113.638213.404313.909414.6458(3)实验内容q=sum(P,2);[h,i]=max(q)[j,k]=min(q)运行结果:h=431.0539i=4j=263.8768k=43(4)实验内容[zcj,xsxh]=sort(q,1,'descend')运行结果:zcj=431.0539422.4358412.5276406.2152406.2138405.

3、7213403.1460399.2641398.1567397.5951396.4313395.2754395.2707393.9752390.5471387.7412385.1553383.4005380.7261377.1703377.1667376.9034376.4872376.4232376.3877375.7044375.4220374.5899374.4189373.6197372.2004370.3176370.2175369.5974366.4410366.1856365.7087365.6344364.5649362.8198362.3022359.9

4、357359.4536359.4265358.4811356.8541356.1746355.8291354.7454352.8705350.6218348.6756348.1554346.4169344.1814344.0732342.3167341.3151340.0799339.8625339.6953336.2557335.9881335.3741335.1173334.5799333.9820333.9038333.8900333.8330333.2322332.9611332.3021331.9274330.6651329.8048329.3764329.27

5、59325.0380323.0856321.3055320.8182315.0577314.3243311.9027311.8808311.5786309.4038307.4508307.2515306.0527302.5308300.4721298.3057297.8670291.8732291.3642291.2584280.4019263.8768xsxh=4520291659357221778987389829937843038181005456649642974813457179828278847671946586363692231295326210745714

6、76724933699440663977419315556852833817553809091504434857051243191160262586871212616543实验九数值微积分与方程数值求解2(1)y=inline('sqrt(cos(t.^2)+4*sin((2*t).^2)+1)');I1=quad(y,0,2*pi)运行结果I1=6.7992+3.1526i(2)x=0:0.01:1;I2=(log(1+x)./(1+x.^2));trapz(x,I2)运行结果:ans=0.27223A=[6,5,-2,5;9,-1,4,-1;3,4,2,-2;3,-9

7、,0,2];b=[-4,13,1,11]';x=Ab运行结果:x=0.6667-1.00001.5000-0.0000

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。