solve#

ScipyRK45.solve(rhs, x0, tspan, saveat, **kwargs)[source]#

Solves the system of ODEs defined by dy/dt = rhs(t, y).

Parameters:
  • rhs (function handle) – RHS vector in the system of ODEs defined by dy/dt = rhs(t, y)

  • x0 (array_like) – Initial value for the system of ODEs

  • tspan (array_like) – 2-element tuple (or array) representing the timespan for the system of ODEs

  • saveat (float or array_like) – If float, defines the time interval at which the solution is to be stored. If array_like, defines the time points at which the solution is to be stored.

  • **kwargs (keyword arguments) – Other keyword arguments that might get used by the integrator

Returns:

Solution of the system of ODEs stored in a subclass of numpy’s ndarray with some added functionalities (ex. you can get the solution at intermediate time points via: y = soln(t_i)).

Return type:

TransientSolution