实验3 插值与数值积分new

实验3 插值与数值积分new

ID:36057766

大小:62.32 KB

页数:8页

时间:2019-04-29

实验3 插值与数值积分new_第1页
实验3 插值与数值积分new_第2页
实验3 插值与数值积分new_第3页
实验3 插值与数值积分new_第4页
实验3 插值与数值积分new_第5页
资源描述:

《实验3 插值与数值积分new》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、数学实验作业郭明钊2012011880化21一、机翼剖面积问题1、问题分析:求剖面积,可以根据上下两边界线分别与坐标轴围成的面积之差来求。先插值,然后再用梯形公式求积分。2、matlab编写如下x1=[035791112131415];y1=[01.82.22.73.03.12.92.52.01.6];x2=[035791112131415];y2=[01.21.72.02.12.01.81.21.01.6];xa=0:0.1:15;%按0.1的间隔在x方向产生插值点ya=spline(x1,y1,xa);%在y方向计算三次样条插值xb=0:0.1:15;yb=sp

2、line(x2,y2,xb);[xa'ya'yb']%输出插值后的结果subplot(1,2,1),plot(x1,y1,x2,y2);subplot(1,2,2),plot(xa,ya,xb,yb);s1=trapz(xa,ya)%上线与坐标轴围成的面积s2=trapz(xb,yb)%下线与坐标轴围成的面积s=s1-s2%机翼的剖面积3、运行结果如下插值前后图像对比插值后数组结果输出(加工所需数据)ans=0000.10000.10890.04990.20000.21340.09900.30000.31370.14740.40000.40970.19510.500

3、00.50180.24210.60000.58980.28840.70000.67400.33400.80000.75450.37880.90000.83140.42301.00000.90470.46651.10000.97470.50941.20001.04130.55151.30001.10470.59301.40001.16510.63381.50001.22250.67391.60001.27700.71341.70001.32870.75231.80001.37780.79041.90001.42440.82802.00001.46850.86492.1

4、0001.51040.90122.20001.54990.93682.30001.58740.97192.40001.62291.00632.50001.65651.04012.60001.68841.07322.70001.71851.10582.80001.74711.13782.90001.77421.16923.00001.80001.20003.10001.82451.23023.20001.84801.25993.30001.87041.28893.40001.89181.31743.50001.91251.34543.60001.93251.37273

5、.70001.95191.39953.80001.97081.42583.90001.98941.45154.00002.00761.47674.10002.02581.50144.20002.04391.52554.30002.06201.54914.40002.08031.57224.50002.09891.59474.60002.11791.61684.70002.13741.63834.80002.15751.65944.90002.17841.67995.00002.20001.70005.10002.22251.71965.20002.24591.738

6、75.30002.27001.75735.40002.29481.77545.50002.32011.79305.60002.34591.81025.70002.37201.82695.80002.39841.84305.90002.42491.85886.00002.45151.87406.10002.47811.88876.20002.50451.90306.30002.53071.91686.40002.55661.93016.50002.58211.94306.60002.60711.95536.70002.63151.96726.80002.65521.9

7、7866.90002.67801.98957.00002.70002.00007.10002.72102.01007.20002.74112.01957.30002.76022.02857.40002.77862.03707.50002.79612.04507.60002.81302.05257.70002.82912.05957.80002.84462.06607.90002.85952.07198.00002.87392.07738.10002.88782.08228.20002.90132.08658.30002.91442.09028.40002.927

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

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

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