euler                package:simecol                R Documentation

_E_u_l_e_r _I_n_t_e_g_r_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     Solving initial value problems for  systems of first-order
     ordinary differential equations (ODEs) using the simple Euler
     forward integration method. A special version is available to work
     with 'odeModel' objects.

_U_s_a_g_e:

       euler(y, times, func, parms, ...) 
       # euler(y) 

_A_r_g_u_m_e_n_t_s:

       y: The 'odeModel' object to be solved.

   times: Placeholder for compatibility with the 'odesolve' package.

    func: Placeholder for compatibility with the 'odesolve' package.

   parms: Placeholder for compatibility with the 'odesolve' package.

     ...: Reserved for further extensions.

_D_e_t_a_i_l_s:

     The solver method 'euler' is used to simulate ODE  models. It
     creates a local environment in a way that parameters, inputs and
     equations are visible within the main function of the 'odeModel'.
     Normally, this function is called indirectly from 'sim'. The Euler
     method is the most primitive integration method and can be
     regarded simply as a fixed step solution of the corresponding
     difference equation.

_V_a_l_u_e:

     A data frame of the model outputs (e.g. states) for all timesteps.

_S_e_e _A_l_s_o:

     'sim', 'parms' 'rk4', 'lsoda', 'iteration'.

_E_x_a_m_p_l_e_s:

         # ordinary usage
         data(lv)
         solver(lv) <- "euler"
         plot(sim(lv))

         # alternative usage
         euler(lv)

