function henon_heiles_ode_test ( )

%*****************************************************************************80
%
%% henon_heiles_ode_test tests henon_heiles().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 April 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../henon_heiles_ode' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'henon_heiles_ode_test:\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test henon_heiles_ode using various ODE solvers.\n' );

  [ e, lam, t0, w0 ] = henon_heiles_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameter lambda = %g\n', lam );
  fprintf ( 1, '  Initial energy E = %g\n', e );
  fprintf ( 1, '  Initial condition (X,X'',Y,Y'') = (%g,%g,%g,%g)\n', w0 );

  tspan = [ t0, 30.0 ];
  n = 10000;
  henon_heiles_euler ( tspan, w0, n );

  tspan = [ t0, 10000.0 ];
  n = 20000;
  henon_heiles_midpoint ( tspan, w0, n );

  tspan = [ t0, 10000.00 ];
  henon_heiles_ode45 ( tspan, w0 );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'henon_heiles_ode_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../henon_heiles_ode' )

  return
end
