南邮数学实验答案_第1页
南邮数学实验答案_第2页
南邮数学实验答案_第3页
南邮数学实验答案_第4页
南邮数学实验答案_第5页
已阅读5页,还剩21页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、第一次练习题1、寻求的所有根。x=-5:0.01:5; y=exp(x)-3*x.2; 打印(x,y )网格打开解算(exp (x )-3 * x. 2,-1)等效解决。fsolvecompletedthevectoroffunctionvaluesisnearzeroasmeasuredbythedefaultvalueofthefunctiontolerance,andproblemappears是ans=-0.4590求解(exp (x )-3 * x. 2,1 )等效解决。fsolvecompletedthevectoroffunctionvaluesisnearzeroasmeasu

2、redbythedefaultvalueofthefunctiontolerance,andproblemappears是ans=0.9100解算(exp (x )-3 * x. 2,4 )等效解决。fsolvecompletedthevectoroffunctionvaluesisnearzeroasmeasuredbythedefaultvalueofthefunctiontolerance,andproblemappears是ans=3.73312 .求下列方程式的根。1) 2)请参照3 )1 ) p= 1,0,0,0,5,1 ; r=roots(p )r=1.1045 1.0598i1

3、.1045 - 1.0598i-1.0045 1.0609i-1.0045 - 1.0609i-0.19992) x=-10:0.01:10; y=x.*sin(x)-1/2; 打印(x,y )网格打开解算(x.* sin (x )-1/2,-6)等效解决。fsolvecompletedthevectoroffunctionvaluesisnearzeroasmeasuredbythedefaultvalueofthefunctiontolerance,andproblemappears是ans=-6.3619解算(x.* sin (x )-1/2,-4)等效解决。fsolvecomplete

4、dthevectoroffunctionvaluesisnearzeroasmeasuredbythedefaultvalueofthefunctiontolerance,andproblemappears是ans=-2.9726f解算(x.* sin (x )-1/2,2 )等效解决。fsolvecompletedthevectoroffunctionvaluesisnearzeroasmeasuredbythedefaultvalueofthefunctiontolerance,andproblemappears是ans=0.74083) x=-3:0.01:3; y=正弦(x ).* c

5、os (x )-x. 2; 打印(x,y )网格打开解算(sin (x ).* cos (x )-x. 2,-1)等效解决。fsolvecompletedthevectoroffunctionvaluesisnearzeroasmeasuredbythedefaultvalueofthefunctiontolerance,andproblemappears是ans=-6.8434e-010求解(sin (x ).* cos (x )-x. 2,1 )等效解决。fsolvecompletedthevectoroffunctionvaluesisnearzeroasmeasuredbythedef

6、aultvalueofthefunctiontolerance,andproblemappears是ans=0.70223 .解决以下问题1) 2)3) 4)5)5)请参照6 )1) syms x限制(x-sin (x ) )/x 3)ans=六分之一2) diff(exp(x)*cos(x ),10 )ans=-32*exp(x)*sin(x )三) PS (PS (x 2)、x、0、1/2 )ans=(pi(1/2)*erfi(1/2)/2PS (PS,17 )ans=0.544987104183622224 )英寸(x 4/(254 * x 2),x )ans=(125 * atan (

7、2* x )/5 ) )/32-(25 * x )/16x 3/125 )类型(sqrt (1x )、9、x、0 )ans=- (429 * x 8)/32768 (33 * x 7)/2048-(21 * x 6)/1024 (7* x 5)/256-(5* x 4)/128 x 3/16-x 2/8x/216 ) diff (exp (PS (1/x ) ),3 )ans=(cos (1/x ) * exp (sin (1/x ) )/x 6- (6* cos (1/x ) * exp (1/x ) )/x 4(6* sin (1/x ) * exp (sin (1/x ) ) ) )/x

8、 5- (6* cos (1/x ) )subs(ans,2 )ans=-0.58264 .获得矩阵的逆矩阵、特征量和特征向量。a=-2,1,1; 0,2,0; -4、1、3 );PS号ans=-1.5000 0.5000 0.50000 0.5000 0-2.0000 0.5000 1.0000PPSans=-122P,D=eig(A )。P=-0.7071 -0.2425 0.30150 0 0.9045-0.7071 -0.9701 0.3015D=-1 0 00 2 00 0 25、各自都知道以下条件描绘的图形、(1) x=-10:0.01:10;y1=1/sqrt(2*pi).*ex

9、p(-x.2/2)y2=1/sqrt (2* pi ).* exp (-(x1 ).2/2)y3=1/sqrt (2* pi ).* exp (-(x-1 ) 2/2)打印(x,y1,x,y2,x,y3 )(2) x=-10:0.01:10;y1=1/sqrt(2*pi).*exp(-x.2/2)y2=1/(sqrt (2* pi ) *2).* exp (-x.2/(2*22) );y3=1/(sqrt (2* pi ) *4).* exp (-x.2/(2*42) );打印(x,y1,x,y2,x,y3 )6 .绘制以下函数的图表: (1)(2)(3)(1) ezmesh(u*sin(t

10、),u*cos(t ),t/4, 0,20,0,2 ); 轴四边形;(2) ezmesh(x,y,sin(x*y ),0,3,0,3 ); 轴四边形;(3)音量* (3cos (u ) )、音量* (3cos (u ) )、音量(u )、0,2 * pi,0,2 * pi; 轴四边形;第二道习题1、数列收敛还是收敛时的值是? 准确地说是6位的有效数字。f=inline(x 7/x)/2 )x0=3;for i=1:20x0=f(x0 )fprintf(%g,%gn,I,x0 )结束1,2.666672,2,2.64583三,三,二. 645754,4,2.645755,5,2.645756,6

11、,2.64575七,七,二. 645758,8,2.64575九,九,二. 64575十、二. 2.64575十一、二.2.64575十二、二.2.64575十三、二.2.64575十四、二.2.64575十五、二.2.64575十六、二.2.64575十七、二.2.64575十八、二.2.64575十九、二.2.64575二十、二.2.645752、收敛与否收敛的情况下的值是? 准确地说是17位的有效数字f=inline(1/n8)x1=0;for i=1:150x1=x1 f(i )fprintf(%g,%1.16fn,I,x1 )结束1,1.00000000000000000000000

12、00002,2,1.003906250000000三、1.00405866579797927594,1.004079245793845,5,1.0040764845793384六、1.00407079953531927,1.004075342004488、1.00407373130246896九、1.0040707632552626十、1.00407073462552626十一、1.0040737539203365十二、1.0040707353246068十三、1.004077453471911514、1.00407075253525252525252525252525252525252525

13、252525252525252525252525252525252525252525252525252十五、1.00407539699316,1.00407725300十七、1.004070752535883518、1.0040707530066281十九、1.004070753065508520、1.004070752535711二十一、一. 1.004070753131010122、1.00407077453149233123,1.004070753162002724,1.004070753171087425、1.004070753177641026、1.004070753182429727、1.004070753185970428、1.00407070753188617429、1.00407070753190616430、1.00407070753192140631、

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论