*************Help!!!! ******Crank Nicolson method

3 ビュー (過去 30 日間)
Xin
Xin 2013 年 5 月 7 日
HELP!!!!!!******************I've looked everywhere on website to solve my coursework problem, however our matlab teacher is a piece of crap, do nothing in class just reading meaningless handouts----------------------- here is the question--------------------------------------------------------------------------------------------------------------------- Write a Matlab script program (or function) to implement the Crank-Nicolson finite difference method based on the equations described in appendix. Save the program as crank_nicolson_heat.m. Test the crank_nicolson_heat.m (by choosing suitable m and n) on the examples described in (I) and (II) for various r and l .---------------------------------------------------------------------------------------------------------------------------(I) Let L=pi, T = 20,f(x)= .1sin(x) , g1(t) = 0, g2(t)= 0 and c = .5---------------------------------------------------------------(II)Let L= 1, T = 1,f(x)= x^4 , g1(t) = 0, g2(t)= 1 and c = 1------------------------------------------------------------------------Thank You!!!

回答 (0 件)

カテゴリ

Help Center および File ExchangeChemistry についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by