desolve_system_rk4( [ equations ], [ variables ], ics=[initial_conditions]
[ , options ] )
The numerical solution in SageMath of the system of first-order differential equations for dependent variables. The argument equations must consist of the right-hand sides of the equations of the system.
Initial conditions are given for the independent variable and each dependent variable, in that order.
Available options are:
ivar=independent_variable end_points=value|[values] step=value
The independent variable must be specified if the equations contain more than one independent variable or if the independent variable does not appear explicitly.
Examples:
var('y z')
desolve_system_rk4( [ x, -x ], [ y, z ], ics=[0,1,1] )
var('y z')
desolve_system_rk4( [ z, -y ], [ y, z ], ics=[0,1,1], ivar=x )
Related operations: desolve_system desolve_odeint
Operation category: solution operations sagemath-docs