TA的每日心情 | 开心 2019-11-20 15:05 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
; H. m M! V% F; S6 ~7 z
2 T" F4 C, j, o; h% b分享常微分数值求解算法,显式4阶龙格-库塔算法。
9 X" {$ k. o2 }4 [) N; a5 L3 ^& tFourth Order Runge-Kutta Method for Ordinary Differential , u3 c- {+ r' [
Equation using Matlab Basic Codes' U+ i0 O2 O7 _6 n" a3 L3 m" o
Question: Use Runge-Kutta method for systems to solve the following 8 K, Q' m. R. N
systems and draw their state paths in the state space of (x,y):) S8 E) W' ?0 N. c6 J# z- Y
(a) Solve with x(0)=4 and y(0)=1 over [0,8] ' _& x# F; v0 C3 o
using h=0.1.
A3 k9 b. p% ~/ G) K2 Y" T& j; BSolution: Using the following program, we can apply fourth order
7 F0 B% P2 b: V& Q6 D F' lRunge-Kutta method for this problem.
. [; p9 y- j7 x0 F |
|