Differential Equations in Python [closed]

蹲街弑〆低调 提交于 2019-11-27 10:48:58

问题


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.


回答1:


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).




回答2:


You use SciPy's integrate, which interfaces with the standard LAPACK routines for something like this.

See this tutorial, which is just one I found on Google. Here are the docs.




回答3:


For calculations in symbols - use sympy.




回答4:


You learn how to do Differential Equations in Python using the numpy and scipy packages on this website:

https://www.udacity.com/course/differential-equations-in-action--cs222

The course is Differential Equations in Action.




回答5:


Probably something in SciPy or NumPy.

See: http://docs.scipy.org/doc/scipy/reference/integrate.html




回答6:


You can use PyDSTool which is for Dynamical systems modeling, simulation and analysis environment. It is mostly use scipy and numpy



来源:https://stackoverflow.com/questions/5847201/differential-equations-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!