精讲多练matlab习题.docx

上传人:大米 文档编号:549121095 上传时间:2023-05-27 格式:DOCX 页数:21 大小:21.91KB
返回 下载 相关 举报
精讲多练matlab习题.docx_第1页
第1页 / 共21页
精讲多练matlab习题.docx_第2页
第2页 / 共21页
精讲多练matlab习题.docx_第3页
第3页 / 共21页
精讲多练matlab习题.docx_第4页
第4页 / 共21页
精讲多练matlab习题.docx_第5页
第5页 / 共21页
点击查看更多>>
资源描述

《精讲多练matlab习题.docx》由会员分享,可在线阅读,更多相关《精讲多练matlab习题.docx(21页珍藏版)》请在金锄头文库上搜索。

1、精讲多练matlab习题第一章2.设A =1.2,B =-4.6,C =8.0,D =3.5,E =-4.0盘算:22arctan E A BC T D ?+ ?=? A=1.2; B=-4.6;C=8.0;D=3.5;E=-4.0; T=atan(2*pi*A+E/(2*pi*B*C)/D T = 0.4112 x=pi/180*45; (sin(x)+sqrt(35)/72(1/5) ans = 2.81583.设45x ?=,盘算 x=pi/180*45; (sin(x)+sqrt(35)/72(1/5) ans = 2.81584.设5.67,7.811,a b =盘算:()()10l

2、og a b a b e + a=5.67;b=7.811; exp(a+b)/log10(a+b) ans = 6.3351e+0055.盘算2316()( 3.2)/(7.7)y x x x x =+-+正在3x =时的值。 x=3; y=sqrt(x)-6*(x+1/x)+(x-3.2)2/(x+7.7)3 y = -18.26796.已经知圆的半径为15,供其曲径,周少及里积。 r=15;d=2*r; c=pi*2*r c = 94.2478 s=pi*r*r s = 706.85837已经知某3角形的3个边的边少为8.5,14.6以及18.4,供该3角形的里积。 提醒:area =个

3、中:()/2,s a b c =+a 、b 、c 分手为3角形3边边少。a=8.5;b=14.6;c=18.4; s=(a+b+c)/2; area=sqrt(s*(s-a)*(s-b)*(s-c) area = 60.6106第2章1.设矩阵311212123A ?=?111210111B -?=-?-? 供:22(1)2(2)43(3)(4)(5)A B A B ABBA AB BA +- A=3 1 1;2 1 2;1 2 3;B=1 1 -1;2 -1 0;1 -1 1; (1) 2*A+B ans =7 3 1 6 1 4 3 3 7 (2) 4*A*A-3*B*B ans =42

4、21 3840 19 46 40 33 56 (3) A*B ans =6 1 -2 6 -1 0 8 -4 2 (4) B*A ans =4 0 0 4 1 0 2 2 2 (5) A*B-B*A ans =2 1 -2 2 -2 0 6 -6 02.设3阶矩阵A B 、,谦足16,A BA A BA -=+ 个中10031 041007A ?=? 供矩阵B 。 A=1/3 0 0; 0 1/4 0;0 0 1/7; B=6*inv(inv(A)-eye(3) B =3 0 0 0 2 0 0 0 13.设11(2)T E C B A C -=,个中E 是4阶单元矩阵,T A 是4阶矩阵A

5、的转置。个中1232012300120001B -?-?=?12010*001C ?=?供矩阵A 。 B=1 2 -3 -2;0 1 2 -3;0 0 1 2;0 0 0 1; C=1 2 0 1;0 1 2 0;0 0 1 2;0 0 0 1; A=(inv(2*eye(4)-inv(C)*B)*inv(C) A =1 0 0 0 -2 1 0 0 1 -2 1 0 0 1 -2 14.设2阶矩阵A 、B 、X ,谦足2X A B X -=-, 个中2112A -?= ?-?0220B -?= ?-?供矩阵X 。 A=2 -1;-1 2;B=0 2;-2 0; X=(2*A+B)/2 X =

6、2 0-2 2 5.供解线性圆程组12412341234123423285223742212x x x x x x x x x x x x x x x -+=?+=?-+-=?+=? A=2 -3 0 2;1 5 2 1;3 -1 1 -1;4 1 2 2; B=8;2;7;12; x=AB x =3.0000 0.0000 -1.0000 1.00006.供解一元6次圆程654331247810x x x x x +=的根。 A=3 12 4 7 0 8 1; x=roots(A)-3.8230 -0.5275 + 0.8497i -0.5275 - 0.8497i 0.5007 + 0.6

7、749i 0.5007 - 0.6749i -0.12347.供多项式65433124781x x x x x +被3(3)(5)x x x -+除了后的了局。 a=3 12 4 7 0 8 1;A=3; b=poly(A); c=1 0 5 0; d=conv(b,c); div,rest=deconv(a,d) div =3 21 52 rest =0 0 0 103 55 788 1第3章1.供极限() lim cos xx +x=sym(x);limit(cos(sqrt(x)(pi/x),x,0,right)exp(-1/2*pi) 2.供极限()()213sin x x cosli

8、m1cos ln 1x x x x +x=sym(x);f=sym(3*sin(x)+x2*cos(1/x)/(1+cos(x)*log(1+x); limit(f,x,0) ans = 3/2 3.供极限 1limx x +x=sym(x);f=sym(sqrt(4*x2+x-1)+x+1)/sqrt(x2+sin(x); limit(f,x,-inf) ans = 1 4.供极限222200lim(x y )x y x y +syms x y;f=sym(x2+y2)(x2*y2); limit(limit(f,x,0),y,0) ans = 1 5.已经知 供y x=sym(x);y=s

9、ym(tan(sqrt(x+sqrt(x+sqrt(2*x)2); diff(y,x) ans =tan(x+(x+2(1/2)*x(1/2)(1/2)(1/2)*(1+tan(x+(x+2(1/2)*x(1/2)(1/2)(1/2)2)/(x+(x+2(1/2)*x(1/2)(1/2)(1/2)*(1+1/2/(x+2(1/2)*x(1/2)(1/2)*(1+1/2*2(1/2)/x(1/2) 6.已经知 供y x=sym(x);y=sym(cos(x2)*sin(1/x)2); diff(y,x) ans =-2*sin(x2)*x*sin(1/x)2-2*cos(x2)*sin(1/x)

10、*cos(1/x)/x22y tg =221cos(x )siny x=7.供积分x=sym(x);y=sym(sqrt(sin(x)-sin(x)3); int(y,x,0,pi) ans = 4/3 8.供积分x=sym(x);y=sym(sqrt(x+1)/(x-1)/x); int(y,x) ans =-(1+x)/(x-1)(1/2)*(x-1)*(atan(1/(-1+x2)(1/2)-log(x+(-1+x2)(1/2)/(1+x)*(x-1)(1/2) 9.供以下微分圆程的通解dsolve(D2y+4*Dy+4*y=exp(-2*x),x) ans =1/2*exp(-2*x)

11、*(2*C2+2*x*C1+x2) 10.供微分圆程dsolve(x2*Dy+x*y=y2,y(1)=1) ?1x ?244y e xy y -+=221,|1x x y xy y y =+=ans =x*exp(1/x)/(exp(1/x)+exp(1/x*t)*x-exp(1/x*t) 第4章1.已经知背量1240510112131,请画图暗示。 A=1 2 4 0 5 10 11 21 3 1; plot(A) 2.画造单元圆。提醒:利用axis(square)下令保障图形的纵横坐标刻度比例不异。 ezplot(x2+y2=1) axis square12345678910 510152

12、025 3.画造伏安个性直线:U RI ,假如R 分手为1,5,10以及20。 R=1 5 10 20; I=0:0.1:10; U=I*R; plot(I,U)legend R=1 R=5 R=10 R=20 grid on xyx 2+y 2=1-1.5-1-0.500.51 1.5 12345678910伏安个性直线电流/A电压/V4.某天区一年中每一月的仄均气亲切仄均落雨量以下表4 - 5所示,请绘出其图形,请求标注出坐标轴、数据面地位、数据面年夜小等。表4 5 温度-落雨量数据month=1;12;degree=0.2 2.3 8.7 18.5 24.6 32.1 36.8 37.1

13、 28.3 17.8 6.4 -3.2;rain=4.6 3.6 2.1 2.9 3.0 2.7 2.2 2.5 4.3 3.4 2.1 3.7; plot(month,degree,+,month,rain,p) month=1:12;degree=0.2 2.3 8.7 18.5 24.6 32.1 36.8 37.1 28.3 17.8 6.4 -3.2;rain=4.6 3.6 2.1 2.9 3.0 2.7 2.2 2.5 4.3 3.4 2.1 3.7; plot(month,degree,+,month,rain,p) grid on xlabel(month)ylabel(degree&rainfall) text(5,24.6,leftarrowdegree); text(3,2.1,leftarrowrainfall); title(Temperature&rainfall); 5.已经知矩阵024681012-50510152025303540monthd e g r e e &r a i n f a l l

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 商业/管理/HR > 其它文档 > 租房合同

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号