TA的每日心情 | 开心 2019-11-20 15:05 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
+ D8 O0 P2 ?; T7 d* w4 A- A" C% I
" ]' a7 |- Q3 p7 p# r) Z1 w分享常微分数值求解算法,显式4阶龙格-库塔算法。* d$ h8 Z* x& F: ]
Fourth Order Runge-Kutta Method for Ordinary Differential : u/ P4 [, m8 E8 x, [
Equation using Matlab Basic Codes* g3 k* g+ f% `8 z
Question: Use Runge-Kutta method for systems to solve the following
3 r+ P/ l& [7 w/ R0 ssystems and draw their state paths in the state space of (x,y):
+ v6 p0 O7 ^) r6 w(a) Solve with x(0)=4 and y(0)=1 over [0,8]
* r5 \" @) L* x1 S/ q; b; Ousing h=0.1.
4 e8 Q! j" O' N5 V4 a$ pSolution: Using the following program, we can apply fourth order
) T# U( F- g* H' }Runge-Kutta method for this problem.
) E' W. H+ ~" P5 k1 R- _ V' s: D3 a |
|