function logistic_ode_test ( )

%*****************************************************************************80
%
%% logistic_ode_test() tests logistic_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2022
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../logistic_ode' );

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

  [ r, k, t0, y0, tstop ] = logistic_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameters:\n' );
  fprintf ( 1, '  r     (growth rate)   = %g\n', r );
  fprintf ( 1, '  k     (capacity)      = %g\n', k );
  fprintf ( 1, '  t0    (initial time)  = %g\n', t0 );
  fprintf ( 1, '  y0    (initial value) = %g\n', y0 );
  fprintf ( 1, '  tstop (final time)    = %g\n', tstop );

  n = 20;
  logistic_euler ( n );

  n = 20;
  logistic_rk4 ( n );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'logistic_ode_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

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

