TA的每日心情 | 开心 2019-11-20 15:05 |
|---|
签到天数: 2 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
; N3 F5 W: U! N% h
0 M( B8 D% H; q: ^; `分享常微分数值求解算法,显式4阶龙格-库塔算法。) L7 t( i5 S! j" ~2 E4 n
Fourth Order Runge-Kutta Method for Ordinary Differential
0 e4 o1 }/ E* k' jEquation using Matlab Basic Codes
0 ]7 W& D6 O7 U1 h% qQuestion: Use Runge-Kutta method for systems to solve the following
0 U) F, t/ [/ w# z- g# Usystems and draw their state paths in the state space of (x,y):
: [% P# w4 O* j8 }" z(a) Solve with x(0)=4 and y(0)=1 over [0,8]
0 y: _7 F- C9 R* q2 r, x% Dusing h=0.1. ) C9 t1 K9 \& k9 g& }
Solution: Using the following program, we can apply fourth order
6 D! M1 |) W: J& O! VRunge-Kutta method for this problem.: K( N/ R7 g1 H! m- l# E
|
|