desolve_odeint( [ equations ], [initial_conditions], [ times ], [ variables ]
[ , options ] )

The numerical solution in SageMath of the system of first-order differential equations for dependent variables. This operation uses SciPy rather than Maxima and is significantly faster than desolve_system_rk4.

The argument equations must consist of the right-hand sides of the equations of the system. Initial conditions are given for each dependent variable: do not include the independent variable.

The domain of the independent variable is specified by the range times.

The return value is a nested list giving the values of the dependent variables for each item in times.

Examples:

var('y z')
desolve_odeint( [ x, -x ], [ 1, 1], srange(0,1,.1), [ y, z ] )
var('y z')
desolve_odeint( [ z, -y ], [ 1, 1 ], srange(0,1,.1), [ y, z ] )

Related operations:   desolve_system_rk4

Operation category: solution operations sagemath-docs