資源描述:
《南郵MATLAB數(shù)學(xué)實(shí)驗(yàn)問(wèn)題詳解全》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、實(shí)用文檔第一次練習(xí)教學(xué)要求:熟練掌握Matlab軟件的基本命令和操作,會(huì)作二維、三維幾何圖形,能夠用Matlab軟件解決微積分、線性代數(shù)與解析幾何中的計(jì)算問(wèn)題。補(bǔ)充命令vpa(x,n)顯示x的n位有效數(shù)字,教材102頁(yè)fplot(‘f(x)’,[a,b])函數(shù)作圖命令,畫出f(x)在區(qū)間[a,b]上的圖形在下面的題目中為你的學(xué)號(hào)的后3位(1-9班)或4位(10班以上)1.1計(jì)算與symsxlimit((902*x-sin(902*x))/x^3)ans=366935404/3limit((902*x-sin(902*x))/x^3,inf)ans=0
2、1.2,求symsxdiff(exp(x)*cos(902*x/1000),2)ans=(46599*cos((451*x)/500)*exp(x))/250000-(451*sin((451*x)/500)*exp(x))/2501.3計(jì)算dblquad(@(x,y)exp(x.^2+y.^2),0,1,0,1)ans=2.13941.4計(jì)算symsxint(x^4/(902^2+4*x^2))ans=(91733851*atan(x/451))/4-(203401*x)/4+x^3/121.5symsxdiff(exp(x)*cos(902*x)
3、,10)ans=-356485076957717053044344387763*cos(902*x)*exp(x)-3952323024277642494822005884*sin(902*x)*exp(x)1.6給出在的泰勒展式(最高次冪為4).文案大全實(shí)用文檔symsxtaylor(sqrt(902/1000+x),5,x)ans=-(9765625*451^(1/2)*500^(1/2)*x^4)/82743933602+(15625*451^(1/2)*500^(1/2)*x^3)/91733851-(125*451^(1/2)*500^(1
4、/2)*x^2)/406802+(451^(1/2)*500^(1/2)*x)/902+(451^(1/2)*500^(1/2))/5001.7Fibonacci數(shù)列的定義是用循環(huán)語(yǔ)句編程給出該數(shù)列的前20項(xiàng)(要求將結(jié)果用向量的形式給出)。x=[1,1];forn=3:20x(n)=x(n-1)+x(n-2);endxx=Columns1through1011235813213455Columns11through208914423337761098715972584418167651.8對(duì)矩陣,求該矩陣的逆矩陣,特征值,特征向量,行列式,計(jì)算,并求
5、矩陣(是對(duì)角矩陣),使得。A=[-2,1,1;0,2,0;-4,1,902/1000];inv(A)ans=0.41070.0223-0.455400.500001.8215-0.4554-0.9107eig(A)ans=-0.5490+1.3764i-0.5490-1.3764i2.0000det(A)ans=4.3920文案大全實(shí)用文檔[P,D]=eig(A)P=%特征向量0.3245-0.3078i0.3245+0.3078i0.2425000.97010.89440.89440.0000D=-0.5490+1.3764i000-0.5490-
6、1.3764i0002.0000P*D^6*inv(P)%A^6的值ans=15.366112.1585+0.0000i-5.8531064.0000023.4124-5.8531+0.0000i-1.61961.9作出如下函數(shù)的圖形(注:先用M文件定義函數(shù),再用fplot進(jìn)行函數(shù)作圖):m文件:functiony=fenduan(x)ifx<=1/2y=2*xelsex<=1y=2-2*xendend執(zhí)行函數(shù):fplot('fenduan',[0,1]);gridontitle('第1.9題圖')得下圖:1.10在同一坐標(biāo)系下作出下面兩條空間曲線(
7、要求兩條曲線用不同的顏色表示)文案大全實(shí)用文檔(1)(2)t=-10:0.01:10;x1=cos(t);y1=sin(t);z1=t;plot3(x1,y1,z1);holdonx2=cos(2*t);y2=sin(2*t);z2=t;plot3(x2,y2,z2,'m');gridontitle('第1.10題圖')得下圖:1.11已知,在MATLAB命令窗口中建立A、B矩陣并對(duì)其進(jìn)行以下操作:(1)計(jì)算矩陣A的行列式的值(2)分別計(jì)算下列各式:解:A=[4,-2,2;-3,0,5;1,5*902,3];B=[1,3,4;-2,0,3;2,-1,
8、1];det(A)ans=-1172882*A-Bans=文案大全實(shí)用文檔7-70-407090215A*B