dopri5_basic.py

assimulo.examples.dopri5_basic.run_example(with_plots=True)[source]

Example to demonstrate the use of the Runge-Kutta solver DOPRI5 for the linear test equation \(\dot y = - y\)

on return:

  • exp_mod problem instance
  • exp_sim solver instance

Final Run Statistics: DOPRI5 Example: $\dot y = - y$ 

 Number of steps                 : 21
 Number of function evaluations  : 128
 Number of error test failures   : 0

Solver options:

 Solver                  : Dopri5 
 Tolerances (absolute)   : 1e-06
 Tolerances (relative)   : 1e-06

Simulation interval    : 0.0 - 5.0 seconds.
Elapsed simulation time: 0.000856161117554 seconds.
_images/dopri5_basic.png

Note

Press [source] (to the top right) to view the example.