How to solve 3 differntial equation by Runge-Kutta 4th order

5 次查看(过去 30 天)
How to Solve 3 Differential Equations Simultaneously by Runge-Kutta 4th order.
(When the 3 differential equations are in nonlinear form.)

采纳的回答

John D'Errico
John D'Errico 2021-11-22
If you NEED to use Runge-Kutta, then this is a homework assignment, and you are not telling us, because you know that we don't do your homework assignments here.
If it IS your homework assignment, then surely you can find pseudo-code to implement Runge-Kutta online? Start here:
If not homework, then you really don't need to use specifically Runge-Kutta, do you? And certainly, you don't need to write the code yourself. So start by reading the help docs for ODE45, looking carefully at the examples. Depending on the extent of the nonlinearity, that may suffice. If not, then you will need to spend some time actively researching methods to solve nonlinear ODE systems. But I'd bet this really is about your homework.
  1 个评论
Surayut Puttipatkl
Surayut Puttipatkl 2021-11-22
Thank you for your reply, this isn't my homework, but maybe my brother's. I saw this problem on computer and I just practiced using MATLAB and I couldn't solve it. Next I will try to do it myself. Thank you.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by