(新)实验八 MATLAB7.0符号运算(II).docVIP

  1. 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
实验八 MATLAB7.0符号运算(II) 实验目的: ① 掌握MATLAB7.0subs、simple、simplify等函数的应用; ② 掌握利用MATLAB7.0计算极限和级数的方法,计算复合函数的方法; ③了解利用MATLAB7.0计算taylor级数、Fourier变换和Laplace变换的方法。 实验要求:给出程序和实验结果。 实验内容: 一、指出下面各条语句的输出结果 f=sym(2*u); subs(f,u,2) f2=subs(f,u,u+2) a=3; subs(f2,u,a+2) subs(f2,u,a+2) syms x y f3=subs(f,u,x+y) subs(f3,[x,y],[1,2]) subs(f3,[x,y],[x+y,x+y]) 二、简化 三、计算 和 四、1 计算级数 及其前100项的部分和; 1589508694133037873112297928517553859702383498543709859889432834803818131090369901/972186144434381030589657976672623144161975583995746241782720354705517986165248000 2 计算函数级数 五、(1)设求复合函数 f(g(z)); (2)设求复合函数 f(g(z))。 六、设a、b定义如下,试上机输出factor(a)和factor(b)的结果,并指出那个结果才是12345678901234567890的因式分解,为什么? a=sym(12345678901234567890); b=sym(12345678901234567890); 所以第一种是。利用simplify函数,它有简化的作用,从而可以直观的看出第一个结果是。 七、替换函数subs的使用。 (1)试指出下面程序中的f1、f2、f3、f4、f5的值。 syms a x; f=a*sin(x)+5; f1=subs(f,sin(x),sym(y)) f2=subs(f,{a,x},{2,sym(pi/3)}) f3=subs(f,{a,x},{2,pi/3}) f4=subs(subs(f,a,2),x,0:pi/6:pi) f5=subs(f,{a,x},{0:6,0:pi/6:pi}) (2)试指出下面替换的结果,并说明理由。 syms x y; f=2*x+y; subs(f,{x,y},{x+y,x-y}) 原因:subs(S,old,new) replaces old with new in the symbolic expression S. old is a symbolic variable or a string representing a variable name. new is a symbolic or numeric variable or expression. If old and new are cell arrays of the same size, each element of old is replaced by the corresponding element of new. If S and old are scalars and new is an array or cell array, the scalars are expanded to produce an array result. If new is a cell array of numeric matrices, the substitutions are performed elementwise (i.e., subs(x*y,{x,y},{A,B}) returns A.*B when A and B are numeric). If subs(s,old,new) does not change s, subs(s,new,old)is tried. This provides backwards compatibility with previous versions and eliminates the need to remember the order of the arguments. subs(s,old,new) does not switch the arguments if s does not change 八、计算sin(

文档评论(0)

tianjiao123 + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档