No BSD License  

Highlights from
Introduction à Matlab (deuxième édition)

from Introduction à Matlab (deuxième édition) by Jean-Thierry
tous les m-fichiers relatifs à la deuxième édition de l'Introduction à Matlab

rk4(f, x, y, h)
function yh = rk4(f, x, y, h)
  k1 = h* feval(f, x , y);
  k2 = h* feval(f, x + h./2  , y + k1./2 ) ;
  k3 = h* feval(f, x + h./2  , y + k2./2 ) ;
  k4 = h* feval(f, x + h,   y +  k3  );
  
  yh = y +  ( k1 + 2* k2 + 2* k3 + k4 )/6.0;

Contact us at files@mathworks.com