其他分享
首页 > 其他分享> > 微分方程数值解

微分方程数值解

作者:互联网

用Python实现四阶龙格-库塔(Runge-Kutta)方法求解高阶微分方程

文章目录

问题

应用四阶龙格-库塔(Runge-Kutta)方法求解如下二阶初值问题:
{ t 2 x ′ ′ ( t ) − 2 t x ′ ( t ) + 2 x ( t ) = t 3 ln ⁡ t , t ∈ [ 1 , 5 ] x ( t ) = 1 , t = 1 x ′ ( t ) = 0. t = 1 \left\{ \begin{aligned} t^2x''(t)-2tx'(t)+2x(t) & = t^3\ln t, & t\in [1,5]\\ x(t) & = 1, & t=1 \\ x'(t) & = 0. & t=1 \end{aligned} \right. ⎩⎪⎨⎪⎧​t2x′′(t)−2tx′(t)+2x(t)x(t)x′(t)​=t3lnt,=1,=0.​t∈[1,5]t=1t=1​
要求:取步长h=0.01,给出解x(t)的图像和在t=0,0.5,1,1.5,2,2.5,3,3.5,4,4.5,5处的近似解.

求解步骤

 龙格-库塔 数值结果

问题来源: 《微分方程数值解》–M.Ran

标签:frac,yn,数值,tn,微分方程,xn,aligned,2h
来源: https://blog.csdn.net/qq_42818403/article/details/120546903