- Replace dy/dt with (y(t+1)-y(t))/dt
- Simplify it so that y(t+1) is on LHS and rest all on RHS. You will get a equation, RHS has all known values and LHS is the value which we seek.
- Initliaze the required arrays and first value of y i.e y = 1 at t=0;
- Create time array with specified time step. t = 0:0.001:0.25.
- Run a loop using time.
Apply the finite difference
์กฐํ ์: 10 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
Ahmad Faisal Sabaruddin
2020๋
7์ 14์ผ
How to apply the finite difference to the following equation of y(t); ๐๐ฆ/๐๐ก = 2๐ฆ^3 + 5. Given at t=0, y=1. Take time steps at ฮt=0.001 and step the solution forward to t=0.25 ?
๋๊ธ ์: 0
์ฑํ๋ ๋ต๋ณ
KSSV
2020๋
7์ 14์ผ
๋๊ธ ์: 0
์ถ๊ฐ ๋ต๋ณ (0๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Operators and Elementary Operations์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!