Numerical Method question solutions
古いコメントを表示
- Consider the following second order differential equation: d2 u (N — 1) du
— + —u = O in (0, 1), (0.1) dr r dr r2 where 1 + I (N — and N 1, 2, 3.
- Find (erplicitly) all the solutions to (0.1) having the form
Hint: make the change of variables t log(r) for r e (0, 1). Find the ODE that v(log(r)) v(t) solves. Observe that this change of variable maps (0, 1) (—00, 0).
- Find the exact solution for the ODE (0.1) with the Final Values
u(l) 0, du (l) —— 1. dr
Hint: Use the explicit solutions found in i.
- Write one MATLAB script to solve numerically the ODE (0.1) + Final Value problem in ii.. Hint: rlYansforrn the Final Value Problem into an IVP reversing the interval (0, 1) using
The script must contain at least one implementation based on the Crank-Nicholson method and another based on the Runge-Kutta method of order 2.
Include plots to compare the implementatioms against the true sohltion. Provide also analysis of your findings.
2 件のコメント
James Tursa
2021 年 6 月 1 日
What have you done so far? What specific problems are you having with your code?
Can you add an image showing the differential equation and instructions? I can't understand what you have posted.
Mehmet Çuha
2021 年 6 月 3 日
編集済み: darova
2021 年 6 月 5 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!