function attractor_ode_test ( )

%*****************************************************************************80
%
%% attractor_ode_test() tests attractor_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 September 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../attractor_ode' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'attractor_ode_test()\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Compute and plot the attractor for various dynamical systems.\n' );
%
%  Anishchenko
%
  [ mu, eta, t0, xyz0, tstop ] = anishchenko_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Anishchenko parameters:\n' );
  fprintf ( 1, '    mu    = %g\n', mu );
  fprintf ( 1, '    eta   = %g\n', eta );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    xyz0  = (%g,%g,%g)\n', xyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  anishchenko_ode23 ( );
%
%  Arneodo
%
  [ alpha, beta, delta, t0, xyz0, tstop ] = arneodo_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Arneodo parameters:\n' );
  fprintf ( 1, '    alpha = %g\n', alpha );
  fprintf ( 1, '    beta  = %g\n', beta );
  fprintf ( 1, '    delta = %g\n', delta );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    xyz0  = (%g,%g,%g)\n', xyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  arneodo_ode23 ( );
%
%  Autocatalytic
%
  [ alpha, beta, t0, wxyz0, tstop ] = autocatalytic_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Autocatalytic parameters:\n' );
  fprintf ( 1, '    alpha = %g\n', alpha );
  fprintf ( 1, '    beta  = %g\n', beta );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    wxyz0 = (%g,%g,%g,%g)\n', wxyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  autocatalytic_ode23 ( );
%
%  Chen
%
  [ a, b, c, t0, xyz0, tstop ] = chen_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Chen parameters:\n' );
  fprintf ( 1, '    a     = %g\n', a );
  fprintf ( 1, '    b     = %g\n', b );
  fprintf ( 1, '    c     = %g\n', c );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    xyz0  = (%g,%g,%g)\n', xyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  chen_ode23 ( );
%
%  Henon Heiles
%
  [ t0, wxyz0, tstop ] = henon_heiles_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Henon Heiles parameters:\n' );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    wxyz0 = (%g,%g,%g,%g)\n', wxyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  henon_heiles_ode23 ( );
%
%  Langford
%
  [ a, b, c, d, e, f, t0, xyz0, tstop ] = langford_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Langford parameters:\n' );
  fprintf ( 1, '    a     = %g\n', a );
  fprintf ( 1, '    b     = %g\n', b );
  fprintf ( 1, '    c     = %g\n', c );
  fprintf ( 1, '    d     = %g\n', d );
  fprintf ( 1, '    e     = %g\n', e );
  fprintf ( 1, '    f     = %g\n', f );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    xyz0  = (%g,%g,%g)\n', xyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  langford_ode23 ( );
%
%  Lorenz
%
  [ beta, rho, sigma, t0, xyz0, tstop ] = lorenz_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Lorenz parameters:\n' );
  fprintf ( 1, '    beta  = %g\n', beta );
  fprintf ( 1, '    rho   = %g\n', rho );
  fprintf ( 1, '    sigma = %g\n', sigma );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    xyz0  = (%g,%g,%g)\n', xyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  lorenz_ode23 ( );
%
%  Roessler
%
  [ alpha, beta, mu, t0, xyz0, tstop ] = roessler_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Roessler parameters:\n' );
  fprintf ( 1, '    alpha = %g\n', alpha );
  fprintf ( 1, '    beta  = %g\n', beta );
  fprintf ( 1, '    mu    = %g\n', mu );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    xyz0  = (%g,%g,%g)\n', xyz0 );
  fprintf ( 1, '    tstop = %g\n', tstop );

  roessler_ode23 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'attractor_ode_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../attractor_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

