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!