欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    科学计算科学计算 (42).pdf

    • 资源ID:67732125       资源大小:519.58KB        全文页数:13页
    • 资源格式: PDF        下载积分:8金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要8金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    科学计算科学计算 (42).pdf

    7.2 S7.2 Symbolic ymbolic C CalculusalculusLimit of symbolic functionsDerivative of symbolic functionsIntegral of symbolic functionsThe command to find the limit of the symbolic function is limit().Its syntax is asfollows:limit(f,x,a)which is used to find the limit of the function f with respect to variable x at point a.This function can also be used to find the unilateral limit.Its syntax is as follows:limit(f,x,a,right)limit(f,x,a,left)1.Limit of symbolic functions1.Limit of symbolic functionsExample 1:Find the two following limits.(1)(2)limxammxaxa+lim(11)nnn syms a m x n f=(x(1/m)-a(1/m)/(x-a);limit(f,x,a)ans=a(1/m-1)/m g=(1+1/n)n;limit(g,n,inf)ans=exp(1)That is exactly the natural constant e.2.D2.Derivative of symbolic functionerivative of symbolic functions sIn MATLAB,the function to evaluate derivative is:diff(f,x,n)Namely,evaluate the n-th derivative of function f with respect to variable x.The usageof parameter x is the same as the limit function.It can be default,and the diff functionuse a default master variable.n represents the order,and the default value of it is 1.(2),evaluateand .Example 2:Evaluate the derivatives of functions.symsx y z f=sqrt(1+exp(x);diff(f)ans=exp(x)/(2*(exp(x)+1)(1/2)zy g=x*exp(y)/y2;diff(g,x)ans=exp(y)/y2 diff(g,y)ans=(x*exp(y)/y2-(2*x*exp(y)/y3(1),evaluate y.1=+yex=yzxey2zx3.Integral of 3.Integral of s symbolic ymbolic functionsfunctions(1)Indefinite integralIn MATLAB,indefinite integral is evaluated by the int function.Its syntax is asfollows:int(f,x)That is to find the indefinite integral of function f with respect to variable x.Example 3:Evaluate indefinite integrals.(1)(2)(3)23xdx512xtxdt+syms x t f=(3-x2)3;int(f)ans=-x7/7+(9*x5)/5-9*x3+27*x g=5*x*t/(1+x2);int(g,t)ans=(5*t2*x)/(2*(x2+1)(2)Definite integralThe function used to evaluate a definite integral is the same as that of an indefiniteintegral,but its syntax is different:int(f,x,a,b)a and b respectively represents the lower limit and upper limit of the definite integral.When the function f is integrable with respect to the variable x in the closed intervala,b,the function returns a definite integral result.When one of a and b is inf,the function returns an generalized integral.When there is a symbolic expression in a and b,the function returns a symbolicfunction.Example 4:Evaluate the definite integrals.(1)(2)(3)42sinxxtdt112xdx112+xdx syms x t int(abs(1-x),1,2)ans=1/2 int(1/(1+x2),-inf,inf)ans=pi int(4*x/t,t,2,sin(x)ans=4*x*(log(sin(x)-log(2)x050100150200250300350400450500550600h(x)4.44.54.64.84.95.15.45.25.55.24.94.84.7Estimation of water flowNow according to the actual measurement,we get the width of the river somewhere is 600m,and the water depths at a certain moment in different positions of its cross-section are asshown in following table.If the current velocity of the water flow is 0.6 meters per second,try to estimate thecurrent flow of the river.It is known that the interval between 50 and 60 in the x-direction is the lower footprotection part of the slope revetment.According to the relevant embankment designspecifications,the slope of a riprap revetment should be less than 1:1.5.Please estimatewhether the erosion of the water has damaged the riprap revetment in this area.Analysis:We can use the data in the table to fit the curve of the riverbed first,then find the definiteintegral.By doing so,we can calculate the cross-sectional area of the river,then estimate thecurrent flow of the river.We can calculate the derivative function of the riverbed curve and determine whether thevalue of the derivative function in the corresponding range less than 1:1.5.xi=0:50:600;yi=4.4,4.5,4.6,4.8,4.9,5.1,5.4,5.2,5.5,5.2,4.9,4.8,4.7;p=polyfit(xi,yi,3);plot(xi,yi,o,xi,polyval(p,xi);syms y xy=poly2sym(p,x);s=int(y,x,0,600);v=s*0.6;eval(v)The value of V is 1787.4(m3/s).xi=0:50:600;yi=4.4,4.5,4.6,4.8,4.9,5.1,5.4,5.2,5.5,5.2,4.9,4.8,4.7;yn=-yi;p=polyfit(xi,yn,3);plot(xi,yn,o,xi,polyval(p,xi);syms y x yiiy=poly2sym(p,x);yii=diff(y,x);x=50:60;k=eval(yii);all(abs(k)1/1.5)The result is 1.x=50:60;y=polyval(p,x);k=diff(y)/1;all(abs(k)1/1.5)The result is also 1.

    注意事项

    本文(科学计算科学计算 (42).pdf)为本站会员(奉***)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开