Python中的微分方程 [英] Differential Equations in Python

查看:97
本文介绍了Python中的微分方程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用DE系统,我想知道哪个是最常用的解决微分方程的python库。

I'm working with a DE system, and I wanted to know which is the most commonly used python library to solve Differential Equations if any.

我的方程是非线性一阶方程。

My Equations are non Linear First Order equations.

推荐答案

如果您需要求解大型非线性系统(尤其是刚性系统),则使用scipy工具缓慢而笨拙。现在,在这种情况下,通常会使用 PyDSTool 软件包。它使您的方程式自动转换为C代码,并将它们与良好的求解器集成在一起。如果要定义状态定义的事件(例如阈值交叉),从数组添加外部输入信号或进行其他分析(例如分叉分析,因为该程序包包含AUTO的接口),则特别好。

If you need to solve large nonlinear systems (especially stiff ones), the scipy tools will be slow and awkward. The PyDSTool package is now quite commonly used in this situation. It lets your equations be automatically converted into C code and integrates them with good solvers. It's especially good if you want to define state-defined events such as threshold crossings, add external input signals from arrays, or have other analyses done (such as bifurcation analysis, as the package includes an interface to AUTO).

这篇关于Python中的微分方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆