function arenstorf_ode_test ( )

%*****************************************************************************80
%
%% arenstorf_ode_test() solves arenstorf_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 February 2023
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../arenstorf_ode' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'arenstorf_ode_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Solve arenstorf_ode().\n' );

  [ mu1, mu2, t0, xy0, tstop ] = arenstorf_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  parameters:\n' );
  fprintf ( 1, '    mu1  =  %g\n', mu1 );
  fprintf ( 1, '    mu2  =  %g\n', mu2 );
  fprintf ( 1, '    t0   =  %g\n', t0 );
  fprintf ( 1, '    xy0  =  (%g,%g,%g,%g)\n', xy0  );
  fprintf ( 1, '    tstop = %g\n', tstop );

  arenstorf_euler ( );
  arenstorf_ode45 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'arenstorf_ode_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../arenstorf_ode' )

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

