function zombie_ode_test ( )

%*****************************************************************************80
%
%% zombie_ode_test() solves zombie_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 November 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../zombie_ode' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'zombie_ode_test()\n' );
  fprintf ( 1, '  MATLAB/Octave version %s.\n', version ( ) );
  fprintf ( 1, '  Solve zombie_ode().\n' );

  [ alpha, beta, gamma, delta, t0, y0, tstop ] = zombie_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  parameters:\n' );
  fprintf ( 1, '    alpha = %g, death rate of zombies in human/zombie encounter.\n', alpha );
  fprintf ( 1, '    beta =  %g, infection rate for human/zombie encounter.\n', beta );
  fprintf ( 1, '    zeta =  %g, dead-human-zombie-resurrection rate.\n', gamma );
  fprintf ( 1, '    delta = %g, non-zombie-related human death rate.\n', delta );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    t0 =    %g, initial time\n', t0 );
  fprintf ( 1, '    y0(1) = %g, initial humans.\n', y0(1) );
  fprintf ( 1, '    y0(2) = %g, initial zombies.\n', y0(2) );
  fprintf ( 1, '    y0(3) = %g, initial suspended zombies.\n', y0(3) );
  fprintf ( 1, '    tstop = %g\n', tstop );

  n = 2000;

  zombie_euler ( n );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'zombie_ode_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

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

