Integration and ODEs (scipy.integrate
)#
Integrating functions, given function object#
|
Compute a definite integral. |
|
Adaptive integration of a vector-valued function. |
|
Compute a double integral. |
|
Compute a triple (definite) integral. |
|
Integration over multiple variables. |
|
Compute a definite integral using fixed-order Gaussian quadrature. |
|
Compute a definite integral using fixed-tolerance Gaussian quadrature. |
|
Romberg integration of a callable function or method. |
|
Return weights and error coefficient for Newton-Cotes integration. |
Warning on issues during integration. |
|
Integrating functions, given fixed samples#
|
Integrate along the given axis using the composite trapezoidal rule. |
|
Cumulatively integrate y(x) using the composite trapezoidal rule. |
|
Integrate y(x) using samples along the given axis and the composite Simpson's rule. |
|
Romberg integration using samples of a function. |
See also
scipy.special
for orthogonal polynomials (special) for Gaussian
quadrature roots and weights for other weighting factors and regions.
Solving initial value problems for ODE systems#
The solvers are implemented as individual classes, which can be used directly (low-level usage) or through a convenience function.
|
Solve an initial value problem for a system of ODEs. |
|
Explicit Runge-Kutta method of order 3(2). |
|
Explicit Runge-Kutta method of order 5(4). |
|
Explicit Runge-Kutta method of order 8. |
|
Implicit Runge-Kutta method of Radau IIA family of order 5. |
|
Implicit method based on backward-differentiation formulas. |
|
Adams/BDF method with automatic stiffness detection and switching. |
|
Base class for ODE solvers. |
|
Base class for local interpolant over step made by an ODE solver. |
|
Continuous ODE solution. |
Old API#
These are the routines developed earlier for SciPy. They wrap older solvers implemented in Fortran (mostly ODEPACK). While the interface to them is not particularly convenient and certain features are missing compared to the new API, the solvers themselves are of good quality and work fast as compiled Fortran code. In some cases, it might be worth using this old API.
|
Integrate a system of ordinary differential equations. |
|
A generic interface class to numeric integrators. |
|
A wrapper of ode for complex systems. |
Solving boundary value problems for ODE systems#
|
Solve a boundary value problem for a system of ODEs. |