资源描述:
《精讲多练MATLAB(第二版)课后习题答案.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、.....第1章练习题答案1-2.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)1-3clearx=45;(sin(x*pi/180)+sqrt(35))/(72^(1/5))1-4cleara=5.67;b=7.811;exp(a+b)/log10(a+b)1-5clearx=3;y=sqrt(x)-6*(x+1/x)+(x-3.2)^2/(x+7.7)^31-6clearr=15;d=2*rc=2*pi*rs=pi*r*r.专业word可编辑......1-7cleara
2、=8.5;b=14.6;c=18.4;s=(a+b+c)/2;area=sqrt(s*(s-a)*(s-b)*(s-c))第2章练习题答案2-1clearA=[311;212;123];B=[11-1;2-10;1-11];2*A+B,4*(A^2)-3*(B^2),A*B,B*A,A*B-B*A2-2clearA=[1/300;01/40;001/7];B=inv(inv(A)-eye(3))*62-3clearB=[12-3-2;012-3;0012;0001];C=[1201;0120;0012;0001];A=(inv(2*eye(4)-inv(
3、C)*B)*inv(C))'2-4clearA=[2-1;-12];B=[0-2;-20];X=(1/2)*(B+2*A).专业word可编辑......2-5clearA=[2-302;1521;3-11-1;4122];B=[8;2;7;12];X=AB2-6A=[31247081];p=poly2str(A,'x')x=roots(A)2-7A=[31247081];B=[1-35-150];[div,rest]=deconv(A,B)第三章3-1.x=sym('x');limit((cos(sqrt(x)))^(pi/x),x,0,'right
4、')ans=exp(-1/2*pi)3-2.x=sym('x');f=sym('(3*sin(x)+x^2*cos(1/x))/((1+cos(x))*log(1+x))');limit(f,x,0)ans=3/23-3.x=sym('x');f=sym('(sqrt(4*x^2+x-1)+x+1)/sqrt(x^2+sin(x))');limit(f,x,-inf).专业word可编辑......ans=13-4.symsxy;f=sym('(x^2+y^2)^(x^2*y^2)');limit(limit(f,x,0),y,0)ans=13-5.x=
5、sym('x');y=sym('(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)))3-6.x=sym('x');y=sym('cos(x^2)*si
6、n(1/x)^2');diff(y,x)ans=-2*sin(x^2)*x*sin(1/x)^2-2*cos(x^2)*sin(1/x)*cos(1/x)/x^23-7.x=sym('x');y=sym('sqrt(sin(x)-sin(x)^3)');int(y,x,0,pi)ans=4/3.专业word可编辑......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+x^2)^(1/2))-log(x+(-1+
7、x^2)^(1/2)))/((1+x)*(x-1))^(1/2)3-9.dsolve('D2y+4*Dy+4*y=exp(-2*x)','x')ans=1/2*exp(-2*x)*(2*C2+2*x*C1+x^2)3-10.dsolve('x^2*Dy+x*y=y^2','y(1)=1')ans=x*exp(1/x)/(exp(1/x)+exp(1/x*t)*x-exp(1/x*t))第四章4-1.plot([1240510112131])4-2.t=0:pi/100:2*pi;x=cos(t);y=sin(t);plot(x,y);axis('squa
8、re');4-3..专业word可编辑......R=[151020];I=0: