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.
Differential equations are solved in Python with the Scipy. integrate package using function odeint or solve_ivp. t: Time points at which the solution should be reported. Additional internal points are often calculated to maintain accuracy of the solution but are not reported.
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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With