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.
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.
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.
You can use PyDSTool which is for Dynamical systems modeling, simulation and analysis environment. It is mostly use scipy and numpy
Probably something in SciPy or NumPy.
See: http://docs.scipy.org/doc/scipy/reference/integrate.html
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.
For calculations in symbols - use sympy.
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).