欢迎来到天天文库
浏览记录
ID:42704088
大小:15.66 KB
页数:5页
时间:2019-09-20
《郑波matlab7work》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1.分解因式(1)(2)程序:symsxy;f=x^4-y^4;factor(f)//(1)factor(sym('5135'))//(2)执行结果:ans=(x-y)*(x+y)*(x^2+y^2)ans=5*13*792.求函数的极限(1)(2)程序:symsx;f1=(x-2)/(x^2-4);limit(f1,x,2)//(1)f2=(sqrt(pi)+sqrt(acos(x)))/(sqrt(x+1));limit(f2,x,-1,'right')//(2)执行结果:ans=1/4ans=Inf3.求积分(1)dx(2)程
2、序:symsx;f1=sqrt(exp(x)+1);int(f1)//(1)f2=exp(x)*(1+exp(x))^2;A=int(f2,x,0,log(2));eval(A)//(2)执行结果:ans=atan((exp(x)+1)^(1/2)*i)*2*i+2*(exp(x)+1)^(1/2)ans=6.33334.求下列级数之和(1)1-1/2+1/3-1/4+…(2)x++…程序:symsn;f1=(1/n)*(-1)^(n+1);symsum(f1,n,1,inf)//(1)f2=(x^(2*n-1))/(2*n-1);
3、symsum(f2,n,1,inf)//(2)执行结果:ans=log(2)ans=piecewise([abs(x)<1,atanh(x)])5.化简表达式(1)x(2)+cos程序:symsxb1b2;f1=2*cos(x)^2-sin(x)^2;simplify(f1)//(1)f2=sin(b1)*cos(b2)+cos(b1)*sin(b2);simplify(f2)//(2)执行结果:ans=3*cos(x)^2-1ans=sin(b1+b2)6.求一阶微分方程组的特解=3x+4y=5x-7yx(0)=0y(0)=1程序
4、:symsxy;[x,y]=dsolve('Dx-3*x-4*y','Dy-5*x+7*y','t')执行结果:x=(exp(-t*(3*5^(1/2)+2))*(5*C9-3*5^(1/2)*C9+5*C8*exp(t*(3*5^(1/2)-2))*exp(t*(3*5^(1/2)+2))+3*5^(1/2)*C8*exp(t*(3*5^(1/2)-2))*exp(t*(3*5^(1/2)+2))))/5y=exp(-t*(3*5^(1/2)+2))*(C9+C8*exp(t*(3*5^(1/2)-2))*exp(t*(3*5^(
5、1/2)+2)))
此文档下载收益归作者所有