Differential Equations in Python [closed]

2019-01-21 17:17发布

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.

6条回答
时光不老,我们不散
2楼-- · 2019-01-21 17:47

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.

查看更多
劳资没心,怎么记你
3楼-- · 2019-01-21 18:05

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

查看更多
走好不送
4楼-- · 2019-01-21 18:07

Probably something in SciPy or NumPy.

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

查看更多
Anthone
5楼-- · 2019-01-21 18:08

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.

查看更多
姐就是有狂的资本
6楼-- · 2019-01-21 18:09

For calculations in symbols - use sympy.

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-01-21 18:10

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

查看更多
登录 后发表回答