euler_basic.py

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

Demonstration of the use of the use of the explicit euler method by solving the linear test equation \(\dot y = - y\)

on return:

  • exp_mod problem instance
  • exp_sim solver instance

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


Solver options:

 Solver            : ExplicitEuler
 Solver type       : fixed step size
 Step size         : 0.01

Simulation interval    : 0.0 - 3.0 seconds.
Elapsed simulation time: 0.00369691848755 seconds.
Final Run Statistics: ExplicitEuler Example: $\dot y = - y$ 


Solver options:

 Solver            : ExplicitEuler
 Solver type       : fixed step size
 Step size         : 0.01

Simulation interval    : 3.0 - 5.0 seconds.
Elapsed simulation time: 0.00224709510803 seconds.
_images/euler_basic.png

Note

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