TA的每日心情 | 开心 2019-11-20 15:05 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
. i" U5 a4 t2 A3 ]2 ?5 d
4 r. L8 T0 m4 W, _; [; A# I8 n分享常微分数值求解算法,显式4阶龙格-库塔算法。! Y' p0 L9 S# Z5 f/ N2 Y5 |* J
Fourth Order Runge-Kutta Method for Ordinary Differential
# m; |( f w8 p7 R dEquation using Matlab Basic Codes
( X2 d9 g2 S; r5 {5 s1 PQuestion: Use Runge-Kutta method for systems to solve the following , i0 U" a8 z/ S1 K8 u3 b6 J
systems and draw their state paths in the state space of (x,y):. I' S6 @0 H9 x( l$ z H1 w
(a) Solve with x(0)=4 and y(0)=1 over [0,8]
) Y. _* T ]: K$ W% ~using h=0.1. , u+ K+ |" u3 ]" i' k
Solution: Using the following program, we can apply fourth order
( l6 {0 Q' v+ S$ V# qRunge-Kutta method for this problem.
- @3 t0 ]% e( A |
|