TA的每日心情 | 开心 2019-11-20 15:05 |
|---|
签到天数: 2 天 [LV.1]初来乍到
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
) y( t& Y/ r0 c$ B
2 t& M! X4 x( e7 p* j分享常微分数值求解算法,显式4阶龙格-库塔算法。5 }4 _/ Y. _; h- _/ _
Fourth Order Runge-Kutta Method for Ordinary Differential
( P; `/ Z! U4 s& x/ ?Equation using Matlab Basic Codes$ U6 I X% X) o$ Z. h
Question: Use Runge-Kutta method for systems to solve the following
6 T* ?; D4 K7 R+ B$ u2 m, U5 Qsystems and draw their state paths in the state space of (x,y):* g% w% D# L6 v3 y7 }6 @
(a) Solve with x(0)=4 and y(0)=1 over [0,8] : R1 K% G( ~+ f, K
using h=0.1.
" S( _/ \, l9 p: i6 F8 A& ASolution: Using the following program, we can apply fourth order ' k! E+ i$ T& a- @
Runge-Kutta method for this problem.
4 M$ S" f& q- H7 y+ [3 Y |
|