版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、程序代碼程序代碼#includevoidmain()intikintT=1000x=1000doubleh[11][11]doubleptprintf(“輸入時間步長Δt:“)scanf(“%lf“f(k=0k=10k)h[0][k]=10.0h[10][k]=0.0f(i=1i=10i)h[i][0]=0.0f(k=0k=9k)f(i=1i=9i)h[i][k1]=pt(h[i1][k]2h[i][k]h[i1][k])h[i][k]
2、f(k=0k=10k)f(i=0i=10i)printf(“%.4f“h[i][k])printf(“n“)運(yùn)行結(jié)果運(yùn)行結(jié)果輸入時間步長Δt:0.110.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.000010.00001.00000.00000.00000.00000.00000.00000.00000.00000.00000.000010.00001.800
3、00.10000.00000.00000.00000.00000.00000.00000.00000.000010.00002.45000.26000.01000.00000.00000.00000.00000.00000.00000.000010.00002.98600.45400.03400.00100.00000.00000.00000.00000.00000.000010.00003.43420.66520.07270.0042
4、0.00010.00000.00000.00000.00000.000010.00003.81390.88290.12510.01060.00050.00000.00000.00000.00000.000010.00004.13941.10020.18940.02110.00150.00010.00000.00000.00000.000010.00004.42151.31300.26370.03590.00330.00020.00000
5、.00000.00000.000010.00004.66851.51890.34580.05550.00620.00050.00000.00000.00000.000010.00004.88671.71660.43410.07960.01060.00100.00010.00000.00000.0000Pressanykeytocontinue輸入時間步長Δt:0.210.00000.00000.00000.00000.00000.000
6、00.00000.00000.00000.00000.000010.00002.00000.00000.00000.00000.00000.00000.00000.00000.00000.000010.00003.20000.40000.00000.00000.00000.00000.00000.00000.00000.000010.00004.00000.88000.08000.00000.00000.00000.00000.0000
7、0.00000.000010.00004.57601.34400.22400.01600.00000.00000.00000.00000.00000.000010.00005.01441.76640.40640.05440.00320.00000.00000.00000.00000.000010.00005.36192.14400.60800.11460.01280.00060.00000.00000.00000.000010.0000
8、5.64602.48040.81650.19290.03070.00290.00010.00000.00000.000010.00005.88362.78071.02460.28520.05760.00790.00070.00000.00000.000010.00006.08633.05011.22790.38750.09320.01640.00200.00010.00000.000010.00006.26183.29291.42430
9、.49670.13670.02890.00450.00050.00000.0000Pressanykeytocontinue輸入時間步長Δt:0.510.00000.00000.00000.00000.00000.00000.00000.00000.00000.00000.000010.00005.00000.00000.00000.00000.00000.00000.00000.00000.00000.000010.00005.000
10、02.50000.00000.00000.00000.00000.00000.00000.00000.000010.00006.25002.50001.25000.00000.00000.00000.00000.00000.00000.000010.00006.25003.75001.25000.62500.00000.00000.00000.00000.00000.000010.00006.87503.75002.18750.6250
11、0.31250.00000.00000.00000.00000.000010.00006.87504.53132.18751.25000.31250.15630.00000.00000.00000.000010.00007.26564.53132.89061.25000.70310.15630.07810.00000.00000.000010.00007.26565.07812.89061.79690.70310.39060.07810
12、.03910.00000.000010.00007.53915.07813.43751.79691.09380.39060.21480.03910.01950.000010.00007.53915.48833.43752.26561.09380.65430.21480.11720.01950.0000Pressanykeytocontinue輸入時間步長Δt:0.5210.00000.00000.00000.00000.00000.00
13、000.00000.00000.00000.00000.000010.00005.20000.00000.00000.00000.00000.00000.00000.00000.00000.000010.00004.99202.70400.00000.00000.00000.00000.00000.00000.00000.000010.00006.40642.48771.40610.00000.00000.00000.00000.000
14、00.00000.000010.00006.23733.96301.23740.73120.00000.00000.00000.00000.00000.000010.00007.01133.72832.39150.61420.38020.00000.00000.00000.00000.000010.00006.85834.74032.16241.41670.30420.19770.00000.00000.00000.000010.000
15、07.39064.50123.11511.22600.82730.15030.10280.00000.00000.000010.00007.24505.28292.85352.00100.68250.47770.07400.05350.00000.000010.00007.65735.03993.67351.75871.26160.37430.27320.03640.02780.000010.00007.51455.69053.3883
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
評論
0/150
提交評論